[FIX] account: Passed context as dict if it is None

lp bug: https://launchpad.net/bugs/691810 fixed

bzr revid: pso@tinyerp.com-20101220055129-5anvbd7pr09x0q1w
This commit is contained in:
pso 2010-12-20 11:21:29 +05:30
parent 32fd6693ca
commit c4af077809
1 changed files with 2 additions and 0 deletions

View File

@ -1278,6 +1278,8 @@ class account_move(osv.osv):
return super(account_move, self).copy(cr, uid, id, default, context)
def unlink(self, cr, uid, ids, context=None, check=True):
if context is None:
context = {}
toremove = []
obj_move_line = self.pool.get('account.move.line')
for move in self.browse(cr, uid, ids, context=context):