Browse Source

[FIX] b_shift: Do not show regular info for non regular worker

pull/105/head
Rémy Taymans 6 years ago
committed by Elouan
parent
commit
8d5fd2456f
  1. 4
      beesdoo_shift/views/task.xml

4
beesdoo_shift/views/task.xml

@ -105,11 +105,11 @@
attrs="{'invisible': [('is_regular', '!=', True), ('is_compensation', '!=', True)]}"/>
<group>
<field name="is_regular"
attrs="{'invisible': [('working_mode', '=', 'irregular')], 'required':[('is_compensation', '=', False)]}">
attrs="{'invisible': [('working_mode', '!=', 'regular')], 'required':[('is_compensation', '=', False)]}">
Regular shift
</field>
<field name="is_compensation"
attrs="{'invisible': [('working_mode', '=', 'irregular')], 'required':[('is_regular', '=', False)]}"/>
attrs="{'invisible': [('working_mode', '!=', 'regular')], 'required':[('is_regular', '=', False)]}"/>
<field name="working_mode" invisible="1"/>
</group>
</group>

Loading…
Cancel
Save