diff --git a/invoice.py b/invoice.py index b6eeff8518..26d880b610 100644 --- a/invoice.py +++ b/invoice.py @@ -2564,10 +2564,11 @@ class InvoiceTax(sequence_ordered(), ModelSQL, ModelView): with Transaction().set_context(**context): tax = Tax(self.tax.id) self.description = tax.description - if self.base >= 0: - self.account = tax.invoice_account - else: - self.account = tax.credit_note_account + if self.base is not None: + if self.base >= 0: + self.account = tax.invoice_account + else: + self.account = tax.credit_note_account @fields.depends('tax', 'base', 'amount', 'manual', 'invoice', '_parent_invoice.currency')