Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX][17.0] l10n_vn: cant find xml_id #659

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ def _vn_coa_rename_xml_id(env):
we need to rename some xml_id like tax or tax.group
in order to avoid duplication
"""
env.cr.execute(
"""SELECT array_agg(id) FROM res_company WHERE chart_template = 'vn'"""
)
env.cr.execute("""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:
royle-vietnam marked this conversation as resolved.
Show resolved Hide resolved
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
Loading