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

@ -2271,7 +2271,7 @@ class stock_move(osv.osv):
return super(stock_move, self).unlink(
cr, uid, ids, context=ctx)
# _create_lot function is not used anywhere
# _create_lot function is not used anywhere
def _create_lot(self, cr, uid, ids, product_id, prefix=False):
""" Creates production lot
@return: Production lot id
@ -2314,10 +2314,10 @@ 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
# action_split function is not used anywhere
def action_split(self, cr, uid, ids, quantity, split_by_qty=1, prefix=False, with_lot=True, context=None):
""" Split Stock Move lines into production lot which specified split by quantity.
@param cr: the database cursor
@ -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