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':