Remove safe_eval

We convert all the fields that were storing python code into PYSON.
We add a pyson attribute on field tag to store PYSON value.

issue4416
review6971002
This commit is contained in:
Cédric Krier
2015-03-09 19:42:28 +01:00
parent 2942bf817d
commit 52404f451d
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -26,7 +26,8 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.action.act_window" id="act_production_request">
<field name="name">Request Productions</field>
<field name="res_model">production</field>
<field name="search_value">[('state', '=', 'request')]</field>
<field name="search_value"
eval="[('state', '=', 'request')]" pyson="1"/>
</record>
<record model="ir.action.act_window.view"
id="act_production_request_view1">
+2 -1
View File
@@ -7,7 +7,8 @@ this repository contains the full copyright notices and license terms. -->
id="act_order_point_form_domain_production">
<field name="name">Production</field>
<field name="sequence" eval="30"/>
<field name="domain">[('type', '=', 'production')]</field>
<field name="domain"
eval="[('type', '=', 'production')]" pyson="1"/>
<field name="act_window" ref="stock_supply.act_order_point_form"/>
</record>
</data>