From c79c37327be4b7fa388b5ba60a6f983d34730337 Mon Sep 17 00:00:00 2001 From: Lorenzo Battistini Date: Tue, 18 Jun 2013 21:39:04 +0200 Subject: [PATCH] [fix] propagation of context is missing --- stock_lot_valuation/stock.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stock_lot_valuation/stock.py b/stock_lot_valuation/stock.py index 81efc767e..40eb215f5 100644 --- a/stock_lot_valuation/stock.py +++ b/stock_lot_valuation/stock.py @@ -122,7 +122,7 @@ class stock_production_lot(orm.Model): move_id = move_obj.create(cr, uid, { 'journal_id': journal_id, 'company_id': company_id - }) + }, context=context) move_ids.append(move_id) @@ -144,13 +144,13 @@ class stock_production_lot(orm.Model): 'account_id': stock_input_acc, 'debit': amount_diff, 'move_id': move_id, - }) + }, context=context) move_line_obj.create(cr, uid, { 'name': product.categ_id.name, 'account_id': account_valuation_id, 'credit': amount_diff, 'move_id': move_id - }) + }, context=context) elif diff < 0: if not stock_output_acc: stock_output_acc = product.property_stock_account_output.id @@ -169,13 +169,13 @@ class stock_production_lot(orm.Model): 'account_id': stock_output_acc, 'credit': amount_diff, 'move_id': move_id - }) + }, context=context) move_line_obj.create(cr, uid, { 'name': product.categ_id.name, 'account_id': account_valuation_id, 'debit': amount_diff, 'move_id': move_id - }) + }, context=context) self.write(cr, uid, rec_id, {'standard_price': new_price})