FIX type_ in on_change_product

This commit is contained in:
Raimon Esteve 2017-05-30 10:21:04 +02:00
parent 440f358c4c
commit 5a8b441b72

View file

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