Skip to content

Commit a296456

Browse files
anhbtitphamgiang2510
authored andcommitted
[IMP] account: The foreign key of the table account_tax_template should be removed.
- Update apriori.py
1 parent 0d9b4aa commit a296456

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

openupgrade_scripts/apriori.py

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"website_sale_stock_product_configurator": "website_sale_product_configurator",
4545
# OCA/web
4646
"web_advanced_search": "web",
47+
"web_chatter_position": "web",
4748
"web_listview_range_select": "web",
4849
# OCA/...
4950
# Viindoo/tvtmaaddons

openupgrade_scripts/scripts/account/17.0.1.2/end-migration.py

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ def _res_partner_bank_computation(env):
88
partner_banks._compute_display_account_warning()
99

1010

11+
def _remove_tables_fks(env):
12+
openupgrade.remove_tables_fks(env.cr, ("account_tax_template",))
13+
14+
1115
@openupgrade.migrate()
1216
def migrate(env, version):
1317
_res_partner_bank_computation(env)
18+
_remove_tables_fks(env)

0 commit comments

Comments
 (0)