[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user