From d37b814c2a1d5ef2106ea9f38c08697ade47a8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 9 Mar 2015 19:42:14 +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 --- purchase.xml | 4 +++- sale.xml | 3 ++- stock.xml | 8 +++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/purchase.xml b/purchase.xml index b645bb48b3..7f8eda9c6a 100644 --- a/purchase.xml +++ b/purchase.xml @@ -12,7 +12,9 @@ this repository contains the full copyright notices and license terms. --> Drop Shipments stock.shipment.drop - [('moves.purchase', 'in', Eval('active_ids'))] + diff --git a/sale.xml b/sale.xml index 538c611098..8728d0b373 100644 --- a/sale.xml +++ b/sale.xml @@ -12,7 +12,8 @@ this repository contains the full copyright notices and license terms. --> Drop Shipments stock.shipment.drop - [('moves.sale', 'in', Eval('active_ids'))] + diff --git a/stock.xml b/stock.xml index 6415b9bd01..1bfdb64701 100644 --- a/stock.xml +++ b/stock.xml @@ -68,13 +68,13 @@ this repository contains the full copyright notices and license terms. --> Draft - [('state', '=', 'draft')] + Waiting - [('state', '=', 'waiting')] + @@ -181,7 +181,9 @@ this repository contains the full copyright notices and license terms. --> - [('company', '=', user.company.id if user.company else None)] +