Do not use equal operator in inverted domain of xxx2Many
The clients will try to enforce to have only a single record with the value. issue10958 review389251002
This commit is contained in:
@@ -232,7 +232,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Sales</field>
|
||||
<field name="res_model">sale.sale</field>
|
||||
<field name="domain"
|
||||
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('drop_shipments', '=', Eval('active_id')), ('drop_shipments', 'in', Eval('active_ids')))]"
|
||||
eval="[('drop_shipments', 'in', Eval('active_ids'))]"
|
||||
pyson="1"/>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view"
|
||||
@@ -258,7 +258,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Purchases</field>
|
||||
<field name="res_model">purchase.purchase</field>
|
||||
<field name="domain"
|
||||
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('drop_shipments', '=', Eval('active_id')), ('drop_shipments', 'in', Eval('active_ids')))]"
|
||||
eval="[('drop_shipments', 'in', Eval('active_ids'))]"
|
||||
pyson="1"/>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view"
|
||||
|
||||
Reference in New Issue
Block a user