Fix on_change's returning value

issue4554
review14991002
This commit is contained in:
Nicolas Évrard
2015-03-16 17:58:43 +01:00
parent 401a460ae6
commit a9bc301744
+2 -2
View File
@@ -420,12 +420,12 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin):
@fields.depends('lines', 'taxes', 'currency', 'party', 'type',
'accounting_date', 'invoice_date')
def on_change_lines(self):
return self._on_change_lines_taxes()
self._on_change_lines_taxes()
@fields.depends('lines', 'taxes', 'currency', 'party', 'type',
'accounting_date', 'invoice_date')
def on_change_taxes(self):
return self._on_change_lines_taxes()
self._on_change_lines_taxes()
def _on_change_lines_taxes(self):
pool = Pool()