Improve relate domain inversion when single record

issue5475
review33801002
This commit is contained in:
Sergi Almacellas Abellana committed 2017-02-17 11:08:06 +01:00
1 parent 4c701f46ef
commit ddd172c59c
1 file changed
+2 -1
+2 -1
View File
@@ -36,7 +36,8 @@ this repository contains the full copyright notices and license terms. -->
<field name="name">Timesheet Lines</field>
<field name="res_model">timesheet.line</field>
<field name="domain"
eval="[('work', 'in', Eval('active_ids'))]" pyson="1"/>
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('work', '=', Eval('active_id')), ('work', 'in', Eval('active_ids')))]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view"
id="act_line_form_work_view1">