Skip to content

Commit

Permalink
[FIX] l10n_vn: cant find xml_id
Browse files Browse the repository at this point in the history
  • Loading branch information
duong77476-viindoo committed Jun 7, 2024
1 parent 9a9a2b1 commit 75aeb3e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ def _vn_coa_rename_xml_id(env):
in order to avoid duplication
"""
env.cr.execute(
"""SELECT array_agg(id) FROM res_company WHERE chart_template = 'vn'"""
"""SELECT id FROM res_company WHERE chart_template = 'vn'"""
)
xmlids_renames = []
for company_id in env.cr.fetchall():
company_ids = [r[0] for r in env.cr.fetchall()]
for company_id in company_ids:
for tax_group_xmlid in _account_tax_group_xmlid:
old_xmlid = f"l10n_vn.{company_id}_" + tax_group_xmlid.split(".")[1]
new_xmlid = f"account.{company_id}_" + tax_group_xmlid.split(".")[1]
Expand Down

0 comments on commit 75aeb3e

Please sign in to comment.