Skip to content

Commit

Permalink
[IMP] account: The foreign key of the table account_tax_template shou…
Browse files Browse the repository at this point in the history
…ld be removed.

- Update apriori.py
  • Loading branch information
anhbtit authored and phamgiang2510 committed Jul 6, 2024
1 parent 0d9b4aa commit a296456
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions openupgrade_scripts/apriori.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"website_sale_stock_product_configurator": "website_sale_product_configurator",
# OCA/web
"web_advanced_search": "web",
"web_chatter_position": "web",
"web_listview_range_select": "web",
# OCA/...
# Viindoo/tvtmaaddons
Expand Down
5 changes: 5 additions & 0 deletions openupgrade_scripts/scripts/account/17.0.1.2/end-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ def _res_partner_bank_computation(env):
partner_banks._compute_display_account_warning()


def _remove_tables_fks(env):
openupgrade.remove_tables_fks(env.cr, ("account_tax_template",))


@openupgrade.migrate()
def migrate(env, version):
_res_partner_bank_computation(env)
_remove_tables_fks(env)

0 comments on commit a296456

Please sign in to comment.