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:
Cédric Krier
2021-11-24 00:59:41 +01:00
parent 503d0901d9
commit c4dc224620
+2 -2
View File
@@ -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"