[Fix] stock : Fix the problem of property_stock_variation

bzr revid: sbh@tinyerp.com-20100806134610-5y8v2h1a69gts1b0
This commit is contained in:
sbh (Open ERP)
2010-08-06 19:16:10 +05:30
parent cc24fe2d3a
commit 211fa4ee67
+1 -1
View File
@@ -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: