From 6babbbbbc89a4bf3297189a725ad1c9da00f0175 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 23 Oct 2017 13:07:11 +0200 Subject: [PATCH] [FIX] stock_account: Anglo Saxon Accounting and Vendor Bills In 9.0 and 10.0 if anglosaxon accounting is active, creating a vendor bill should generate the following entry : Debit:Stock Input Credit:Payable But due to this fix: e9d6dcf16f1696cfb3d934c0196ace38af5fae4c Debit:Expense Credit:Payable This reverts commit e9d6dcf16f1696cfb3d934c0196ace38af5fae4c to keep the same behavior in 11.0. opw:777837 --- addons/stock_account/models/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock_account/models/account_invoice.py b/addons/stock_account/models/account_invoice.py index 281d15de0e3..db13282be1e 100644 --- a/addons/stock_account/models/account_invoice.py +++ b/addons/stock_account/models/account_invoice.py @@ -99,6 +99,6 @@ class AccountInvoiceLine(models.Model): def get_invoice_line_account(self, type, product, fpos, company): if company.anglo_saxon_accounting and type in ('in_invoice', 'in_refund') and product and product.type == 'product': accounts = product.product_tmpl_id.get_product_accounts(fiscal_pos=fpos) - if product.categ_id.property_valuation != 'manual_periodic' and accounts['stock_input']: + if accounts['stock_input']: return accounts['stock_input'] return super(AccountInvoiceLine, self).get_invoice_line_account(type, product, fpos, company)