[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:e9d6dcf16fDebit:Expense Credit:Payable This reverts commite9d6dcf16fto keep the same behavior in 11.0. opw:777837
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user