Made calls to action_done contain context as last argument.

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

bzr revid: viktor.nagy@toolpart.hu-20111209083235-f8oox4qukn2dbuz2
This commit is contained in:
Viktor Nagy 2011-12-09 09:32:35 +01:00
parent 21b068b38d
commit d875b5e788
1 changed files with 4 additions and 4 deletions

View File

@ -2314,7 +2314,7 @@ class stock_move(osv.osv):
for (id, name) in product_obj.name_get(cr, uid, [move.product_id.id]):
self.log(cr, uid, move.id, "%s x %s %s" % (quantity, name, _("were scrapped")))
self.action_done(cr, uid, res)
self.action_done(cr, uid, res, context=context)
return res
# action_split function is not used anywhere
@ -2439,7 +2439,7 @@ class stock_move(osv.osv):
for (id, name) in product_obj.name_get(cr, uid, [new_move.product_id.id]):
message = _("Product '%s' is consumed with '%s' quantity.") %(name, new_move.product_qty)
self.log(cr, uid, new_move.id, message)
self.action_done(cr, uid, res)
self.action_done(cr, uid, res, context=context)
return res