Browse Source

[FIX] b_shift: PR #62 and #63

This fixes PR #62 and #63. It uses the `no_create` and `no_open` options
for `many2many` widget.
pull/105/head
Rémy Taymans 6 years ago
committed by Elouan
parent
commit
94eab1a747
  1. 7
      beesdoo_shift/views/task.xml

7
beesdoo_shift/views/task.xml

@ -98,8 +98,11 @@
<field name="task_template_id" /> <field name="task_template_id" />
<field name="task_type_id" /> <field name="task_type_id" />
<field name="super_coop_id" /> <field name="super_coop_id" />
<field name="worker_id" options="{'create': false, 'create_edit': false}"/>
<field name="replaced_id" attrs="{'invisible': [('is_regular', '!=', True)]}"/>
<field name="worker_id" options="{'no_create': True, 'no_open': True}"/>
<field name="replaced_id"
options="{'no_create': True, 'no_open': True}"
domain="[('working_mode', '=', 'regular')]"
attrs="{'invisible': [('is_regular', '!=', True)]}"/>
<field name="is_regular" attrs="{'invisible': [('working_mode', '=', 'irregular')]}"/> <field name="is_regular" attrs="{'invisible': [('working_mode', '=', 'irregular')]}"/>
<field name="working_mode" invisible="1" /> <field name="working_mode" invisible="1" />
</group> </group>

Loading…
Cancel
Save