From fc449df49df7ae1a19f6b7e85ea33de4daad6518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Sun, 16 Mar 2014 20:51:06 +0100 Subject: [PATCH] Add index to one2many's on_change add review2091002 issue3539 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index a34c94e4b5..09267055d9 100644 --- a/invoice.py +++ b/invoice.py @@ -524,7 +524,7 @@ class Invoice(Workflow, ModelSQL, ModelView): if value.get(field): value[field + '.rec_name'] = \ Target(value[field]).rec_name - res['taxes']['add'].append(value) + res['taxes']['add'].append((-1, value)) if self.currency: res['untaxed_amount'] = self.currency.round(res['untaxed_amount']) res['tax_amount'] = self.currency.round(res['tax_amount'])