From b62b2423e6f8b804f88d72f91c39645593399f4b Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 18 Oct 2016 15:38:36 +0200 Subject: [PATCH] [FIX] account: fix typo in new API conversion `record.ids` is already a list and should not be wrapped in another list Introduced in conversion at d6e1d41128c126071d697220f1c83495d6cabc71 --- addons/account/models/chart_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/chart_template.py b/addons/account/models/chart_template.py index 599c507c77b..a7841f307c4 100644 --- a/addons/account/models/chart_template.py +++ b/addons/account/models/chart_template.py @@ -39,7 +39,7 @@ def migrate_tags_on_taxes(cr, registry): ('description', '=', tax_template.description) ]) if len(tax_id.ids) == 1: - tax_id.sudo().write({'tag_ids': [(6, 0, [tax_template.tag_ids.ids])]}) + tax_id.sudo().write({'tag_ids': [(6, 0, tax_template.tag_ids.ids)]}) # --------------------------------------------------------------- # Account Templates: Account, Tax, Tax Code and chart. + Wizard