diff --git a/addons/stock_account/product.py b/addons/stock_account/product.py index b5f3cf11f5f..e187b0f8020 100644 --- a/addons/stock_account/product.py +++ b/addons/stock_account/product.py @@ -127,11 +127,11 @@ class product_template(osv.osv): # Accounting Entries amount_diff = abs(diff * qty) if diff * qty > 0: - debit_account_id = datas['stock_input'].id + debit_account_id = datas['expense'].id credit_account_id = datas['stock_valuation'].id else: debit_account_id = datas['stock_valuation'].id - credit_account_id = datas['stock_output'].id + credit_account_id = datas['expense'].id lines = [(0, 0, {'name': _('Standard Price changed'), 'account_id': debit_account_id,