From cc8994a4ef51dbf4a2e938e58bec11416038ed56 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Mon, 9 Sep 2019 12:35:32 +0000 Subject: [PATCH] [REF] stock_account: consider consumable product for anglo saxon entries closes odoo/odoo#36560 Signed-off-by: Simon Lejeune (sle) --- addons/stock_account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock_account/models/account_move.py b/addons/stock_account/models/account_move.py index abf4f6ff252..988ca85fa09 100644 --- a/addons/stock_account/models/account_move.py +++ b/addons/stock_account/models/account_move.py @@ -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.