From 7ba4b880bcd7507ba58b684386d692d375105a5e Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Mon, 9 Aug 2010 14:33:30 +0200 Subject: [PATCH] [FIX] account: Remove the parentheses because the assertion was always true bzr revid: stephane@openerp.com-20100809123330-4m0xyqdelwjc1wlp --- 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 aa0a27ad76d..5f83dd4582f 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1236,7 +1236,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 = {}