[REF] stock_account: consider consumable product for anglo saxon entries
closes odoo/odoo#36560 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
@@ -86,7 +86,7 @@ class AccountMove(models.Model):
|
||||
for line in move.invoice_line_ids:
|
||||
|
||||
# Filter out lines being not eligible for COGS.
|
||||
if line.product_id.type != 'product' or line.product_id.valuation != 'real_time':
|
||||
if line.product_id.type not in ('product', 'consu') or line.product_id.valuation != 'real_time':
|
||||
continue
|
||||
|
||||
# Retrieve accounts needed to generate the COGS.
|
||||
|
||||
Reference in New Issue
Block a user