From 6fa2dea82e17a5f75ac99fd7849a240411cf37df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 9 Mar 2015 19:41:12 +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 --- invoice.xml | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/invoice.xml b/invoice.xml index fe1a39e549..ed964fd6f5 100644 --- a/invoice.xml +++ b/invoice.xml @@ -6,21 +6,27 @@ this repository contains the full copyright notices and license terms. --> account.invoice.line - context.get('standalone', False) + invoice_line_form account.invoice.line - context.get('standalone', False) + invoice_line_tree Invoice Lines account.invoice.line - [('invoice_type', '=', 'out_invoice'), ('invoice', '=', None)] - {'invoice_type': 'out_invoice', 'standalone': True} + + @@ -39,8 +45,12 @@ this repository contains the full copyright notices and license terms. --> Credit Note Lines account.invoice.line - [('invoice_type', '=', 'out_credit_note'), ('invoice', '=', None)] - {'invoice_type': 'out_credit_note', 'standalone': True} + + @@ -59,8 +69,12 @@ this repository contains the full copyright notices and license terms. --> Supplier Invoice Lines account.invoice.line - [('invoice_type', '=', 'in_invoice'), ('invoice', '=', None)] - {'invoice_type': 'in_invoice', 'standalone': True} + + @@ -79,8 +93,12 @@ this repository contains the full copyright notices and license terms. --> Supplier Credit Note Lines account.invoice.line - [('invoice_type', '=', 'in_credit_note'), ('invoice', '=', None)] - {'invoice_type': 'in_credit_note', 'standalone': True} + +