Improve relate domain inversion when single record

issue5475
review33801002
This commit is contained in:
Sergi Almacellas Abellana committed 2017-02-17 11:07:57 +01:00
1 parent 7569f3382f
commit 70affbc3fe
1 file changed
+4 -2
+4 -2
View File
@@ -7,7 +7,8 @@ this repository contains the full copyright notices and license terms. -->
<field name="name">Order Points</field>
<field name="res_model">stock.order_point</field>
<field name="domain"
eval="[('product', 'in', Eval('active_ids'))]" pyson="1"/>
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('product', '=', Eval('active_id')), ('product', 'in', Eval('active_ids')))]"
pyson="1"/>
</record>
<record model="ir.action.keyword" id="act_open_order_point_keyword1">
<field name="keyword">form_relate</field>
@@ -19,7 +20,8 @@ this repository contains the full copyright notices and license terms. -->
<field name="name">Order Points</field>
<field name="res_model">stock.order_point</field>
<field name="domain"
eval="[('product.template', 'in', Eval('active_ids'))]" pyson="1"/>
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('product.template', '=', Eval('active_id')), ('product.template', 'in', Eval('active_ids')))]"
pyson="1"/>
</record>
<record model="ir.action.keyword" id="act_open_order_point_keyword2">
<field name="keyword">form_relate</field>