From 211fa4ee67d502c54d4c602e4a7f612ccb5b6785 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Fri, 6 Aug 2010 19:16:10 +0530 Subject: [PATCH] [Fix] stock : Fix the problem of property_stock_variation bzr revid: sbh@tinyerp.com-20100806134610-5y8v2h1a69gts1b0 --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 0f613b5e47d..5b7d46f9c20 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1730,7 +1730,7 @@ class stock_move(osv.osv): accounts = product_obj.get_product_accounts(cr,uid,move.product_id.id,context) acc_src = accounts['stock_account_input'] acc_dest = accounts['stock_account_output'] - acc_variation = accounts['property_stock_variation'] + acc_variation = accounts.get('property_stock_variation', False) journal_id = accounts['stock_journal'] if context is None: