|
@ -51,15 +51,22 @@ |
|
|
<field name="name">Added Shifts List</field> |
|
|
<field name="name">Added Shifts List</field> |
|
|
<field name="model">beesdoo.shift.sheet.added</field> |
|
|
<field name="model">beesdoo.shift.sheet.added</field> |
|
|
<field name="arch" type="xml"> |
|
|
<field name="arch" type="xml"> |
|
|
<tree decoration-success="state == 'done'"> |
|
|
|
|
|
|
|
|
<tree decoration-danger="state in ['absent_0', 'absent_1', 'absent_2'] " |
|
|
|
|
|
decoration-success="state == 'done'"> |
|
|
<field name="task_type_id" |
|
|
<field name="task_type_id" |
|
|
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" /> |
|
|
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" /> |
|
|
<field name="worker_id" |
|
|
<field name="worker_id" |
|
|
domain="[('state','in',['alert', 'ok'])]" |
|
|
|
|
|
|
|
|
domain="[ |
|
|
|
|
|
('eater', '=', 'worker_eater'), |
|
|
|
|
|
('working_mode', 'in', ('regular', 'irregular')), |
|
|
|
|
|
('state', 'not in', ('unsubscribed', 'resigning')), |
|
|
|
|
|
]" |
|
|
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" /> |
|
|
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" /> |
|
|
<field name="working_mode" /> |
|
|
<field name="working_mode" /> |
|
|
<field name="is_compensation" readonly="True"/> |
|
|
|
|
|
<field name="state" readonly="True" /> |
|
|
|
|
|
|
|
|
<field name="is_compensation" |
|
|
|
|
|
attrs="{'invisible': |
|
|
|
|
|
[('working_mode','=','irregular')]}"/> |
|
|
|
|
|
<field name="state"/> |
|
|
</tree> |
|
|
</tree> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
@ -94,13 +101,17 @@ |
|
|
<field name="task_type_id" |
|
|
<field name="task_type_id" |
|
|
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" /> |
|
|
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" /> |
|
|
<field name="worker_id" |
|
|
<field name="worker_id" |
|
|
domain="[('state','in',['alert', 'ok'])]" |
|
|
|
|
|
|
|
|
domain="[ |
|
|
|
|
|
('eater', '=', 'worker_eater'), |
|
|
|
|
|
('working_mode', 'in', ('regular', 'irregular')), |
|
|
|
|
|
('state', 'not in', ('unsubscribed', 'resigning')), |
|
|
|
|
|
]" |
|
|
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" /> |
|
|
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" /> |
|
|
<field name="working_mode" /> |
|
|
<field name="working_mode" /> |
|
|
<field name="is_compensation" |
|
|
<field name="is_compensation" |
|
|
attrs="{'invisible': |
|
|
attrs="{'invisible': |
|
|
[('working_mode','=','irregular')]}"/> |
|
|
[('working_mode','=','irregular')]}"/> |
|
|
<field name="state" readonly="True" /> |
|
|
|
|
|
|
|
|
<field name="state"/> |
|
|
</group> |
|
|
</group> |
|
|
</form> |
|
|
</form> |
|
|
</field> |
|
|
</field> |
|
|