Browse Source

[MIG] b_shift : migration to 12.0

pull/143/head
Elouan Le Bars 5 years ago
parent
commit
bae42f7112
  1. 2
      beesdoo_shift/__manifest__.py
  2. 3
      beesdoo_shift/views/attendance_sheet.xml
  3. 2
      beesdoo_shift/views/task.xml
  4. 6
      beesdoo_shift/views/task_template.xml

2
beesdoo_shift/__manifest__.py

@ -12,7 +12,7 @@
'website': "https://github.com/beescoop/Obeesdoo", 'website': "https://github.com/beescoop/Obeesdoo",
'category': 'Cooperative management', 'category': 'Cooperative management',
'version': '11.0.1.0.0',
'version': '12.0.1.0.0',
'depends': ['beesdoo_base', 'barcodes'], 'depends': ['beesdoo_base', 'barcodes'],

3
beesdoo_shift/views/attendance_sheet.xml

@ -10,13 +10,16 @@
<field name="day" /> <field name="day" />
<field name="validated_by" /> <field name="validated_by" />
<filter string="Annotated (unread)" <filter string="Annotated (unread)"
name="annotated"
domain="[('is_annotated', '=', True), domain="[('is_annotated', '=', True),
('is_read', '=', False)]" /> ('is_read', '=', False)]" />
<filter string="Annotated (read)" <filter string="Annotated (read)"
name="annotated_read"
domain="[('is_annotated', '=', True), domain="[('is_annotated', '=', True),
('is_read', '=', True)]" /> ('is_read', '=', True)]" />
<separator /> <separator />
<filter string="Archived" <filter string="Archived"
name="archived"
domain="[('active', '=', False)]" /> domain="[('active', '=', False)]" />
<group expand="1" string="Group By"> <group expand="1" string="Group By">
<filter string="Day" name="gb_day" <filter string="Day" name="gb_day"

2
beesdoo_shift/views/task.xml

@ -28,6 +28,7 @@
<field name="super_coop_id" /> <field name="super_coop_id" />
<field name="worker_id" /> <field name="worker_id" />
<filter string="My Team Shift" <filter string="My Team Shift"
name="my_team_shift"
domain="[('super_coop_id', '=', uid)]" /> domain="[('super_coop_id', '=', uid)]" />
<filter string="My Shift" <filter string="My Shift"
domain="[('worker_id.user_ids', 'in', uid)]" /> domain="[('worker_id.user_ids', 'in', uid)]" />
@ -53,6 +54,7 @@
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'))]" /> 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"> <group expand="1" string="Group By">
<filter string="Shift Template" <filter string="Shift Template"
name="template"
context="{'group_by' : 'task_template_id'}" /> context="{'group_by' : 'task_template_id'}" />
<filter string="Type" name="gb_type" <filter string="Type" name="gb_type"
context="{'group_by' : 'task_type_id'}" /> context="{'group_by' : 'task_type_id'}" />

6
beesdoo_shift/views/task_template.xml

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

Loading…
Cancel
Save