[FIX] assert is a statement, not a function
bzr revid: xmo@openerp.com-20100702103432-fyrdgu8a7rl4uj4u
This commit is contained in:
parent
626738e210
commit
39402113ac
|
@ -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 = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue