diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 461c863aaed..970ebea8672 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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