Improve ref attribute in XML data

The model is enforced according to the ref usage.
The ref attribute can be used as value for Reference field.
The exceptions raised by the parser are normalized.

issue10982
review384341002
This commit is contained in:
Cédric Krier
2022-03-07 00:52:58 +01:00
parent 717c3c4224
commit ddc5a2c0b3
+3 -3
View File
@@ -73,7 +73,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.action.keyword" id="act_reporting_margin_main_keyword1">
<field name="keyword">tree_open</field>
<field name="model" eval="'ir.ui.menu,%s' % ref('menu_reporting_margin')"/>
<field name="model" ref="menu_reporting_margin"/>
<field name="action" ref="act_reporting_margin_main"/>
</record>
@@ -246,7 +246,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.action.keyword" id="act_reporting_margin_product_keyword1">
<field name="keyword">tree_open</field>
<field name="model" eval="'ir.ui.menu,%s' % ref('menu_reporting_margin')"/>
<field name="model" ref="menu_reporting_margin"/>
<field name="action" ref="act_reporting_margin_product"/>
</record>
@@ -389,7 +389,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.action.keyword" id="act_reporting_margin_category_tree_keyword1">
<field name="keyword">tree_open</field>
<field name="model" eval="'ir.ui.menu,%s' % ref('menu_reporting_margin')"/>
<field name="model" ref="menu_reporting_margin"/>
<field name="action" ref="act_reporting_margin_category_tree"/>
</record>