Browse Source

Migration of module beesdoo_shift to version 12.0

pull/105/head
Elouan 5 years ago
parent
commit
d13546f34e
  1. 2
      beesdoo_shift/views/cooperative_status.xml
  2. 9
      beesdoo_shift/views/task.xml
  3. 6
      beesdoo_shift/views/task_template.xml

2
beesdoo_shift/views/cooperative_status.xml

@ -192,5 +192,3 @@
<menuitem name="Counter Update Journal" id="menu_journal" parent="menu_status_top"
action="action_journal" groups="beesdoo_shift.group_cooperative_admin" />
</odoo>

9
beesdoo_shift/views/task.xml

@ -28,9 +28,11 @@
<field name="super_coop_id" />
<field name="worker_id" />
<filter string="My Team Shift"
domain="[('super_coop_id', '=', uid)]" />
domain="[('super_coop_id', '=', uid)]"
name="team_shift"/>
<filter string="My Shift"
domain="[('worker_id.user_ids', 'in', uid)]" />
domain="[('worker_id.user_ids', 'in', uid)]"
name="shift" />
<separator />
<filter string="Assigned" name="assigned"
domain="[('worker_id', '!=', False)]" />
@ -53,7 +55,8 @@
domain="[('end_time','&gt;', context_today().strftime('%%Y-%%m-%%d 00:00:00')), ('start_time','&lt;', context_today().strftime('%%Y-%%m-%%d 23:59:59'))]" />
<group expand="1" string="Group By">
<filter string="Shift Template"
context="{'group_by' : 'task_template_id'}" />
context="{'group_by' : 'task_template_id'}"
name="shift_template" />
<filter string="Type" name="gb_type"
context="{'group_by' : 'task_type_id'}" />
<filter string="Status" name="gb_status"

6
beesdoo_shift/views/task_template.xml

@ -29,9 +29,9 @@
<field name="super_coop_id" />
<field name="day_nb_id" />
<field name="worker_ids" />
<filter string="My Team Shift" domain="[('super_coop_id', '=', uid)]" />
<filter string="Planning" context="{'group_by':'planning_id'}" />
<filter string="Week Day" context="{'group_by':'day_nb_id'}" />
<filter string="My Team Shift" domain="[('super_coop_id', '=', uid)]" name="team_shift" />
<filter string="Planning" context="{'group_by':'planning_id'}" name="planning" />
<filter string="Week Day" context="{'group_by':'day_nb_id'}" name="week_day"/>
<filter string="Place Available" name="available"
domain="[('remaining_worker', '>', 0)]" />
</search>

Loading…
Cancel
Save