From 29ce13f47f6acfaa08ef69577421145d7efd0a35 Mon Sep 17 00:00:00 2001 From: Eduardo Ruiz Date: Thu, 23 Jan 2014 11:26:25 +0100 Subject: [PATCH] Add missing 'invoice_type' to on_change of product invoice_type is used in the on_change method of product. issue3586 review2731002 (transplanted from 65bde6c273e26f8eb6cd7c5bff9ee5dab7ae7502) --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index fa250b856a..7216a58de7 100644 --- a/invoice.py +++ b/invoice.py @@ -1366,7 +1366,7 @@ class InvoiceLine(ModelSQL, ModelView): on_change=['product', 'unit', 'quantity', 'description', '_parent_invoice.type', '_parent_invoice.party', '_parent_invoice.currency', '_parent_invoice.currency_date', - 'party', 'currency', 'invoice'], + 'party', 'currency', 'invoice', 'invoice_type'], depends=['type']) account = fields.Many2One('account.account', 'Account', domain=[