[FIX] add missing domain filter on subkpi

one can only add subkpis that belong to the same report.
pull/231/head
Stéphane Bidoul (ACSONE) 2016-09-25 12:30:04 +02:00
parent 58c559b59f
commit 403612679c
1 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@
<field name="style_id"/>
<field name="style_expression"/>
<!--<field name="sequence" />-->
<field name="report_id" invisible="1"/>
</group>
<group string="Expression">
<field name="multi"/>
@ -111,7 +112,7 @@
delete="0" create="0"
attrs="{'invisible': [('multi', '=', False)]}">
<tree editable="bottom">
<field name="subkpi_id"/>
<field name="subkpi_id" domain="[('report_id', '=', parent.report_id)]"/>
<field name="name"/>
</tree>
</field>