Skip to content

Commit

Permalink
Update pre-migration.py
Browse files Browse the repository at this point in the history
  • Loading branch information
royle-vietnam authored Jun 7, 2024
1 parent 11c73ca commit d07970d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions openupgrade_scripts/scripts/account/17.0.1.2/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,15 +522,7 @@ def _account_tax_migration(env):
)

new_tax_group_id = env.cr.fetchone()[0]
env["ir.model.data"].create(
{
"res_id": new_tax_group_id,
"name": f"{company_id}_{tax_group_name}",
"noupdate": imd.noupdate,
"model": "account.tax.group",
"module": imd.module,
}
)
imd.copy(default={"res_id": new_tax_group_id}).name = f"{company_id}_{tax_group_name}"

openupgrade.logged_query(
env.cr,
Expand Down

0 comments on commit d07970d

Please sign in to comment.