Improve relate domain inversion when single record

issue5475
review33801002
This commit is contained in:
Sergi Almacellas Abellana
2017-02-17 11:07:33 +01:00
parent 1b6b8d5be6
commit 7805b304a7
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="name">Drop Shipments</field>
<field name="res_model">stock.shipment.drop</field>
<field name="domain"
eval="[('moves.purchase', 'in', Eval('active_ids'))]"
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('moves.purchase', '=', Eval('active_id')), ('moves.purchase', 'in', Eval('active_ids')))]"
pyson="1"/>
</record>
<record model="ir.action.keyword"
+2 -1
View File
@@ -19,7 +19,8 @@ this repository contains the full copyright notices and license terms. -->
<field name="name">Drop Shipments</field>
<field name="res_model">stock.shipment.drop</field>
<field name="domain"
eval="[('moves.sale', 'in', Eval('active_ids'))]" pyson="1"/>
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('moves.sale', '=', Eval('active_id')), ('moves.sale', 'in', Eval('active_ids')))]"
pyson="1"/>
</record>
<record model="ir.action.keyword"
id="act_open_sale_drop_shipment_keyword1">