From 130ddb28d82373d7694fa2bab1703695bb5e9aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 9 Mar 2015 19:41:50 +0100 Subject: [PATCH] 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 --- category.xml | 2 +- product.xml | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/category.xml b/category.xml index 52dcd41702..bd65990ff8 100644 --- a/category.xml +++ b/category.xml @@ -25,7 +25,7 @@ this repository contains the full copyright notices and license terms. --> Categories product.category - [('parent', '=', None)] + diff --git a/product.xml b/product.xml index d2d4990e35..a4c55dd372 100644 --- a/product.xml +++ b/product.xml @@ -56,8 +56,11 @@ this repository contains the full copyright notices and license terms. --> Product by Category product.template - {'categories': [Eval('active_id')]} - [('category','child_of', [Eval('active_id')], 'parent')] + +