[FIX] assert is a statement, not a function

bzr revid: xmo@openerp.com-20100702103432-fyrdgu8a7rl4uj4u
This commit is contained in:
Xavier Morel 2010-07-02 12:34:32 +02:00
parent 626738e210
commit 39402113ac
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {}