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 committed 2015-03-09 19:41:50 +01:00
1 parent 0b2645c386
commit 130ddb28d8
2 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.action.act_window" id="act_category_tree">
<field name="name">Categories</field>
<field name="res_model">product.category</field>
<field name="domain">[('parent', '=', None)]</field>
<field name="domain" eval="[('parent', '=', None)]" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_category_tree_view1">
<field name="sequence" eval="10"/>
+5 -2
View File
@@ -56,8 +56,11 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.action.act_window" id="act_template_by_category">
<field name="name">Product by Category</field>
<field name="res_model">product.template</field>
<field name="context">{'categories': [Eval('active_id')]}</field>
<field name="domain">[('category','child_of', [Eval('active_id')], 'parent')]</field>
<field name="context"
eval="{'categories': [Eval('active_id')]}" pyson="1"/>
<field name="domain"
eval="[('category','child_of', [Eval('active_id')], 'parent')]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_template_by_category_view1">
<field name="sequence" eval="10"/>