From 39402113ac61b6449773007c9ffa9267132d20fb Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 2 Jul 2010 12:34:32 +0200 Subject: [PATCH] [FIX] assert is a statement, not a function bzr revid: xmo@openerp.com-20100702103432-fyrdgu8a7rl4uj4u --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index 589730c9ca7..22c234dd0ad 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1143,7 +1143,7 @@ class account_move(osv.osv): return amount def _centralise(self, cr, uid, move, mode, context=None): - assert(mode in ('debit', 'credit'), 'Invalid Mode') #to prevent sql injection + assert mode in ('debit', 'credit'), 'Invalid Mode' #to prevent sql injection if context is None: context = {}