From 5a8b441b72419a63e51989f437284e6c69e9e513 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Tue, 30 May 2017 10:21:04 +0200 Subject: [PATCH] FIX type_ in on_change_product --- invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/invoice.py b/invoice.py index ea82636..cb2a269 100644 --- a/invoice.py +++ b/invoice.py @@ -390,6 +390,7 @@ class InvoiceLine: type_ = None super(InvoiceLine, self).on_change_product() + type_ = None if self.invoice and self.invoice.type: type_ = self.invoice.type elif self.invoice_type: