Reviewers: ,


Please review this at http://codereview.tryton.org/644002/

Affected files:
  M invoice.py


Index: invoice.py
===================================================================

--- a/invoice.py
+++ b/invoice.py
@@ -1917,8 +1917,8 @@
             res[field] = getattr(self, field).id

         res['taxes'] = []
-        for tax in self.taxes:
-            res['taxes'].append(('add', tax.id))
+        if self.taxes:
+            res['taxes'].append(('add', [tax.id for tax in self.taxes]))
         return res





--
--
[email protected] mailing list



Reply via email to