Add index to one2many's on_change add

review2091002
issue3539
This commit is contained in:
Nicolas Évrard
2014-03-16 20:51:06 +01:00
parent b8a10a5324
commit fc449df49d
+1 -1
View File
@@ -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'])