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:46 +01:00
1 parent acf3864a27
commit 0d3fe9dd1f
2 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -23,7 +23,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">party.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
@@ -62,8 +62,11 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.action.act_window" id="act_party_by_category">
<field name="name">Parties by Category</field>
<field name="res_model">party.party</field>
<field name="context">{'categories': [Eval('active_id')]}</field>
<field name="domain">[('categories', 'child_of', [Eval('active_id')], 'parent')]</field>
<field name="context"
eval="{'categories': [Eval('active_id')]}" pyson="1"/>
<field name="domain"
eval="[('categories', 'child_of', [Eval('active_id')], 'parent')]"
pyson="1"/>
</record>
<record model="ir.action.keyword" id="act_party_by_category_keyword1">
<field name="keyword">tree_open</field>