diff --git a/addons/l10n_in_sale/report/account_invoice_report.py b/addons/l10n_in_sale/report/account_invoice_report.py index 92894cecec9..16834b44fe0 100644 --- a/addons/l10n_in_sale/report/account_invoice_report.py +++ b/addons/l10n_in_sale/report/account_invoice_report.py @@ -9,7 +9,7 @@ class L10nInAccountInvoiceReport(models.Model): def _where(self): where_str = super(L10nInAccountInvoiceReport, self)._where() - where_str += """ AND aml.product_id != COALESCE( - (SELECT value from ir_config_parameter where key = 'sale.default_deposit_product_id'), '0')::int + where_str += """ AND (aml.product_id IS NULL or aml.product_id != COALESCE( + (SELECT value from ir_config_parameter where key = 'sale.default_deposit_product_id'), '0')::int) """ return where_str