feat(fusion_planning): hide Role field from Add Shift dialog
Role is still auto-pulled from the employee's Default Role on the employee profile (planning.slot._compute_role_id reads resource_id.default_role_id). Hiding the manual Role field declutters the Add Shift dialog so the manager doesn't have to think about it on each shift. If a shift needs a one-off role override, an admin can still set it via the backend list view or by editing the resource's default role. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,12 @@
|
||||
invisible="id"
|
||||
groups="planning.group_planning_manager"/>
|
||||
</xpath>
|
||||
<!-- Hide the manual Role field from the Add Shift dialog. Role is
|
||||
still auto-pulled from the employee's Default Role on the
|
||||
employee profile via planning.slot._compute_role_id. -->
|
||||
<xpath expr="//field[@name='role_id']" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user