|
|
@ -54,15 +54,22 @@ |
|
|
|
<field name="name">Added Shifts List</field> |
|
|
|
<field name="model">beesdoo.shift.sheet.added</field> |
|
|
|
<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" |
|
|
|
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" /> |
|
|
|
<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 }" /> |
|
|
|
<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> |
|
|
|
</field> |
|
|
|
</record> |
|
|
@ -97,13 +104,17 @@ |
|
|
|
<field name="task_type_id" |
|
|
|
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" /> |
|
|
|
<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 }" /> |
|
|
|
<field name="working_mode" /> |
|
|
|
<field name="is_compensation" |
|
|
|
attrs="{'invisible': |
|
|
|
[('working_mode','=','irregular')]}"/> |
|
|
|
<field name="state" readonly="True" /> |
|
|
|
<field name="state"/> |
|
|
|
</group> |
|
|
|
</form> |
|
|
|
</field> |
|
|
|