|
|
@ -31,11 +31,14 @@ |
|
|
|
name="my_team_shift" |
|
|
|
domain="[('super_coop_id', '=', uid)]" /> |
|
|
|
<filter string="My Shift" |
|
|
|
name="my_shift" |
|
|
|
domain="[('worker_id.user_ids', 'in', uid)]" /> |
|
|
|
<separator /> |
|
|
|
<filter string="Assigned" name="assigned" |
|
|
|
<filter string="Assigned" |
|
|
|
name="assigned" |
|
|
|
domain="[('worker_id', '!=', False)]" /> |
|
|
|
<filter string="Unassigned" name="unassigned" |
|
|
|
<filter string="Unassigned" |
|
|
|
name="unassigned" |
|
|
|
domain="[('worker_id', '=', False)]" /> |
|
|
|
<separator /> |
|
|
|
<filter string="4 next days" name="nextweek" |
|
|
@ -56,11 +59,14 @@ |
|
|
|
<filter string="Shift Template" |
|
|
|
name="template" |
|
|
|
context="{'group_by' : 'task_template_id'}" /> |
|
|
|
<filter string="Type" name="gb_type" |
|
|
|
<filter string="Type" |
|
|
|
name="gb_type" |
|
|
|
context="{'group_by' : 'task_type_id'}" /> |
|
|
|
<filter string="Status" name="gb_status" |
|
|
|
<filter string="Status" |
|
|
|
name="gb_status" |
|
|
|
context="{'group_by' : 'state'}" /> |
|
|
|
<filter string="Day" name="gb_day" |
|
|
|
<filter string="Day" |
|
|
|
name="gb_day" |
|
|
|
context="{'group_by' : 'start_time:day'}" /> |
|
|
|
</group> |
|
|
|
</search> |
|
|
@ -141,21 +147,16 @@ |
|
|
|
<field name="is_regular" /> |
|
|
|
<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" /> |
|
|
|
<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> |
|
|
|
<ul class="dropdown-menu" role="menu" |
|
|
|
aria-labelledby="dLabel"> |
|
|
|
<t t-if="widget.editable"> |
|
|
|
<li> |
|
|
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> |
|
|
|
<li t-if="widget.editable"> |
|
|
|
<a type="edit">Edit Shift</a> |
|
|
|
</li> |
|
|
|
</t> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
<div class="oe_kanban_content"> |
|
|
|