|
@ -29,14 +29,17 @@ |
|
|
<field name="worker_id" /> |
|
|
<field name="worker_id" /> |
|
|
<filter string="My Team Shift" |
|
|
<filter string="My Team Shift" |
|
|
name="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)]" /> |
|
|
|
|
|
|
|
|
name="my_shift" |
|
|
|
|
|
domain="[('worker_id.user_ids', 'in', uid)]" /> |
|
|
<separator /> |
|
|
<separator /> |
|
|
<filter string="Assigned" name="assigned" |
|
|
|
|
|
domain="[('worker_id', '!=', False)]" /> |
|
|
|
|
|
<filter string="Unassigned" name="unassigned" |
|
|
|
|
|
domain="[('worker_id', '=', False)]" /> |
|
|
|
|
|
|
|
|
<filter string="Assigned" |
|
|
|
|
|
name="assigned" |
|
|
|
|
|
domain="[('worker_id', '!=', False)]" /> |
|
|
|
|
|
<filter string="Unassigned" |
|
|
|
|
|
name="unassigned" |
|
|
|
|
|
domain="[('worker_id', '=', False)]" /> |
|
|
<separator /> |
|
|
<separator /> |
|
|
<filter string="4 next days" name="nextweek" |
|
|
<filter string="4 next days" name="nextweek" |
|
|
domain="[('end_time','>', context_today().strftime('%Y-%m-%d 00:00:00')), ('start_time','<', (context_today() + datetime.timedelta(days=4)).strftime('%Y-%m-%d 23:59:59'))]" /> |
|
|
domain="[('end_time','>', context_today().strftime('%Y-%m-%d 00:00:00')), ('start_time','<', (context_today() + datetime.timedelta(days=4)).strftime('%Y-%m-%d 23:59:59'))]" /> |
|
@ -55,13 +58,16 @@ |
|
|
<group expand="1" string="Group By"> |
|
|
<group expand="1" string="Group By"> |
|
|
<filter string="Shift Template" |
|
|
<filter string="Shift Template" |
|
|
name="template" |
|
|
name="template" |
|
|
context="{'group_by' : 'task_template_id'}" /> |
|
|
|
|
|
<filter string="Type" name="gb_type" |
|
|
|
|
|
context="{'group_by' : 'task_type_id'}" /> |
|
|
|
|
|
<filter string="Status" name="gb_status" |
|
|
|
|
|
context="{'group_by' : 'state'}" /> |
|
|
|
|
|
<filter string="Day" name="gb_day" |
|
|
|
|
|
context="{'group_by' : 'start_time:day'}" /> |
|
|
|
|
|
|
|
|
context="{'group_by' : 'task_template_id'}" /> |
|
|
|
|
|
<filter string="Type" |
|
|
|
|
|
name="gb_type" |
|
|
|
|
|
context="{'group_by' : 'task_type_id'}" /> |
|
|
|
|
|
<filter string="Status" |
|
|
|
|
|
name="gb_status" |
|
|
|
|
|
context="{'group_by' : 'state'}" /> |
|
|
|
|
|
<filter string="Day" |
|
|
|
|
|
name="gb_day" |
|
|
|
|
|
context="{'group_by' : 'start_time:day'}" /> |
|
|
</group> |
|
|
</group> |
|
|
</search> |
|
|
</search> |
|
|
</field> |
|
|
</field> |
|
@ -140,22 +146,17 @@ |
|
|
<field name="super_coop_id" /> |
|
|
<field name="super_coop_id" /> |
|
|
<field name="is_regular" /> |
|
|
<field name="is_regular" /> |
|
|
<templates> |
|
|
<templates> |
|
|
<t t-name="kanban-box"> |
|
|
|
|
|
<div |
|
|
|
|
|
t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click"> |
|
|
|
|
|
<div class="o_dropdown_kanban dropdown" |
|
|
|
|
|
groups="base.group_user"> |
|
|
|
|
|
<a class="dropdown-toggle btn" |
|
|
|
|
|
data-toggle="dropdown" href="#"> |
|
|
|
|
|
<span class="fa fa-bars fa-lg" /> |
|
|
|
|
|
|
|
|
<t t-name="kanban-box"> |
|
|
|
|
|
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click"> |
|
|
|
|
|
<div class="o_dropdown_kanban dropdown" name="card_dropdown_menu" groups="base.group_user"> |
|
|
|
|
|
<a role="button" class="dropdown-toggle o-no-caret btn" data-toggle="dropdown" |
|
|
|
|
|
href="#" aria-label="Dropdown menu" title="Dropdown menu"> |
|
|
|
|
|
<span class="fa fa-bars fa-lg"/> |
|
|
</a> |
|
|
</a> |
|
|
<ul class="dropdown-menu" role="menu" |
|
|
|
|
|
aria-labelledby="dLabel"> |
|
|
|
|
|
<t t-if="widget.editable"> |
|
|
|
|
|
<li> |
|
|
|
|
|
<a type="edit">Edit Shift</a> |
|
|
|
|
|
</li> |
|
|
|
|
|
</t> |
|
|
|
|
|
|
|
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> |
|
|
|
|
|
<li t-if="widget.editable"> |
|
|
|
|
|
<a type="edit">Edit Shift</a> |
|
|
|
|
|
</li> |
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
<div class="oe_kanban_content"> |
|
|
<div class="oe_kanban_content"> |
|
|