changeset 240951d98c46 in modules/account:5.0
details: https://hg.tryton.org/modules/account?cmd=changeset;node=240951d98c46
description:
        Use list of ids in add operation on Many2Many in update_account2

        issue7791
        review72351002
        (grafted from 89e48591dae198ead6ac141c570e288adf4ec003)
diffstat:

 account.py |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (16 lines):

diff -r 569841ce0b04 -r 240951d98c46 account.py
--- a/account.py        Mon Dec 03 01:01:37 2018 +0100
+++ b/account.py        Sun Nov 25 14:38:39 2018 +0100
@@ -1079,9 +1079,9 @@
                 for tax_id in tax_ids:
                     if tax_id not in old_tax_ids:
                         values['taxes'] = [
-                            ('add', template2tax[x.id])
-                            for x in self.template.taxes
-                            if x.id in template2tax]
+                            ('add', [template2tax[x.id]
+                                    for x in child.template.taxes
+                                    if x.id in template2tax])]
                         break
                 if child.template.replaced_by:
                     replaced_by = template2account[

Reply via email to