From 7571a1cb807c31e86219830b327b768c0112de22 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Sat, 17 Jan 2026 18:15:29 +0100 Subject: [PATCH] 17.01.26 --- modules/account_invoice/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_invoice/invoice.py b/modules/account_invoice/invoice.py index bc51487..cf68c2f 100755 --- a/modules/account_invoice/invoice.py +++ b/modules/account_invoice/invoice.py @@ -2031,7 +2031,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin, InvoiceReportMixin): var_qt = sum([i.quantity for i in gl]) logger.info("LOT_TO_PROCESS:%s",lot) logger.info("FEE_TO_PROCESS:%s",gl[0].fee) - if lot: + if (lot and not gl[0].fee) or (gl[0].fee and gl[0].product.landed_cost): adjust_move_lines = [] mov = None if self.type == 'in':