[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 d6e1d41128
This commit is contained in:
Olivier Dony
2016-10-18 16:40:30 +02:00
parent aaff7d5d51
commit b62b2423e6
+1 -1
View File
@@ -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