[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:
Simon Lejeune
2019-09-09 12:35:32 +00:00
parent 36346afd96
commit cc8994a4ef
+1 -1
View File
@@ -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.