Skip to content
Snippets Groups Projects
Commit 57d09031 authored by Quentin De Paoli's avatar Quentin De Paoli
Browse files

[FIX] stock_account: counterpart account for standard price adjustment is now...

[FIX] stock_account: counterpart account for standard price adjustment is now expense instead of stock_input or stock_output.
parent 4cae9da1
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment