forked from michel/Coworking
Test if coworker 1 or 2 is is_coworker for form and tree
This commit is contained in:
parent
2a1e846304
commit
60d4824375
@ -11,8 +11,8 @@
|
|||||||
<sheet>
|
<sheet>
|
||||||
<group name="group_top">
|
<group name="group_top">
|
||||||
<group name="group_left">
|
<group name="group_left">
|
||||||
<field name="coworker1" domain="['&', ('id', '!=', coworker2), ('is_coworker', '=', True)]" />
|
<field name="coworker1" domain="[('id', '!=', coworker2), ('is_coworker', '=', True)]" />
|
||||||
<field name="coworker2" domain="['&', ('id', '!=', coworker1), ('is_coworker', '=', True)]" />
|
<field name="coworker2" domain="[('id', '!=', coworker1), ('is_coworker', '=', True)]" />
|
||||||
<field name="relation" />
|
<field name="relation" />
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
@ -27,8 +27,8 @@
|
|||||||
<field name="model">coworking.relation</field>
|
<field name="model">coworking.relation</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree editable="True">
|
<tree editable="True">
|
||||||
<field name="coworker1" domain="[('id', '!=', coworker2)]" />
|
<field name="coworker1" domain="[('id', '!=', coworker2), ('is_coworker', '=', True)]" />
|
||||||
<field name="coworker2" domain="[('id', '!=', coworker1)]" />
|
<field name="coworker2" domain="[('id', '!=', coworker1), ('is_coworker', '=', True)]" />
|
||||||
<field name="relation" />
|
<field name="relation" />
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user