Browse Source

[IMP] b_shift : attendance sheet views set no_open options

pull/125/head
Elouan Le Bars 5 years ago
parent
commit
d494d24449
  1. 17
      beesdoo_shift/views/attendance_sheet.xml

17
beesdoo_shift/views/attendance_sheet.xml

@ -6,15 +6,16 @@
<field name="name">Expected Shifts List</field>
<field name="model">beesdoo.shift.sheet.expected</field>
<field name="arch" type="xml">
<tree editable="top" create="false" delete="false"
<tree editable="bottom" create="false" delete="false" open="false"
decoration-danger="stage == 'absent'"
decoration-success="stage == 'present'">
<field name="task_type_id" readonly="True"/>
<field name="worker_id" readonly="True"/>
<field name="task_type_id" readonly="True" options="{'no_open': True}"/>
<field name="worker_id" readonly="True" options="{'no_open': True}"/>
<field name="working_mode" />
<field name="replacement_worker_id"
attrs="{'readonly':
[('working_mode','=','irregular')]}"/>
[('working_mode','=','irregular')]}"
options="{'no_create': True, 'no_create_edit':True}"/>
<field name="stage" />
<field name="compensation_nb"
attrs="{'readonly':
@ -30,10 +31,12 @@
<field name="name">Added Shifts List</field>
<field name="model">beesdoo.shift.sheet.added</field>
<field name="arch" type="xml">
<tree editable="top"
<tree editable="bottom"
decoration-success="stage == 'present'">
<field name="task_type_id" />
<field name="worker_id" />
<field name="task_type_id"
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" />
<field name="worker_id"
options="{'no_open': True, 'no_create': True, 'no_create_edit':True }" />
<field name="working_mode" />
<field name="regular_task_type"
attrs="{'readonly':

Loading…
Cancel
Save