[FIX] stock_account: counterpart account for standard price adjustment is now expense instead of stock_input or stock_output.

This commit is contained in:
qdp-odoo
2015-10-21 16:23:28 +02:00
parent 4cae9da141
commit 57d0903154
+2 -2
View File
@@ -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,