From ff3c474f54cc76ff286e7fb817bfc0a7a1299614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 9 Mar 2015 19:41:20 +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 --- journal.xml | 4 +++- statement.xml | 43 ++++++++++++++++++++++++++++++------------- 2 files changed, 33 insertions(+), 14 deletions(-) diff --git a/journal.xml b/journal.xml index 54f890b3fa..1ac2a59f58 100644 --- a/journal.xml +++ b/journal.xml @@ -56,7 +56,9 @@ this repository contains the full copyright notices and license terms. --> - [('company', '=', user.company.id if user.company else None)] + diff --git a/statement.xml b/statement.xml index f3ced19cf0..a1ebd97a93 100644 --- a/statement.xml +++ b/statement.xml @@ -48,21 +48,21 @@ this repository contains the full copyright notices and license terms. --> id="act_statement_form_domain_draft"> Draft - [('state', '=', 'draft')] + Validated - [('state', '=', 'validated')] + Posted - [('state', '=', 'posted')] + - [('company', '=', user.company.id if user.company else None)] + @@ -119,7 +121,8 @@ this repository contains the full copyright notices and license terms. --> Statement Lines account.statement.line - [('move', 'in', Eval('active_ids'))] + form_relate @@ -130,7 +133,8 @@ this repository contains the full copyright notices and license terms. --> Statement Lines account.statement.line - [('move.lines', 'in', Eval('active_ids'))] + form_relate @@ -143,7 +147,9 @@ this repository contains the full copyright notices and license terms. --> - [('statement.company', '=', user.company.id if user.company else None)] + @@ -293,7 +299,9 @@ this repository contains the full copyright notices and license terms. --> - [('statement.company', '=', user.company.id if user.company else None)] + @@ -332,7 +340,9 @@ this repository contains the full copyright notices and license terms. --> Move Lines account.move.line - [('origin.id', 'in', Eval('active_ids'), 'account.statement')] + form_relate @@ -343,7 +353,9 @@ this repository contains the full copyright notices and license terms. --> Move Lines account.move.line - [('origin.id', 'in', Eval('active_ids'), 'account.statement.line')] + form_relate @@ -354,7 +366,9 @@ this repository contains the full copyright notices and license terms. --> Moves account.move - [('origin.statement.id', 'in', Eval('active_ids'), 'account.statement.line')] + form_relate @@ -365,7 +379,9 @@ this repository contains the full copyright notices and license terms. --> Moves account.move - [('origin.id', 'in', Eval('active_ids'), 'account.statement.line')] + form_relate @@ -376,7 +392,8 @@ this repository contains the full copyright notices and license terms. --> Line Groups account.statement.line.group - [('journal', 'in', Eval('active_ids'))] + form_relate