From 57d0903154c56201a4d59a3e7176f55dc46dc1ae Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Wed, 21 Oct 2015 16:23:08 +0200 Subject: [PATCH] [FIX] stock_account: counterpart account for standard price adjustment is now expense instead of stock_input or stock_output. --- addons/stock_account/product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,