Skip to content
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
5 changes: 5 additions & 0 deletions odoo/addons/base/migrations/12.0.1.3/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
('stock.incoterm_FOB', 'account.incoterm_FOB'),
]

_obsolete_tables = (
"stock_location_path",
)


def switch_noupdate_flag(env):
""""Some renamed XML-IDs have changed their noupdate status, so we change
Expand Down Expand Up @@ -168,6 +172,7 @@ def fill_ir_attachment_res_model_name(cr):

@openupgrade.migrate(use_env=True)
def migrate(env, version):
openupgrade.remove_tables_fks(env.cr, _obsolete_tables)
# Deactivate the noupdate flag (hardcoded on initial SQL load) for allowing
# to update changed data on this group.
openupgrade.logged_query(
Expand Down