[FIX] account: Remove the parentheses because the assertion was always true
authorStephane Wirtel <stephane@openerp.com>
Mon, 9 Aug 2010 12:33:30 +0000 (14:33 +0200)
committerStephane Wirtel <stephane@openerp.com>
Mon, 9 Aug 2010 12:33:30 +0000 (14:33 +0200)
bzr revid: stephane@openerp.com-20100809123330-4m0xyqdelwjc1wlp

addons/account/account.py

index aa0a27a..5f83dd4 100644 (file)
@@ -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 = {}