Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions openupgrade_scripts/scripts/account/18.0.1.3/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@
]


def _drop_sql_views(env):
openupgrade.logged_query(
env.cr,
"""
DROP VIEW IF EXISTS account_root
""",
)


def rename_selection_option(env):
openupgrade.logged_query(
env.cr,
Expand Down Expand Up @@ -218,6 +227,7 @@ def migrate(env, version):
openupgrade.rename_fields(env, field_renames_l10n_dk_bookkeeping)
openupgrade.rename_fields(env, field_renames)
openupgrade.add_columns(env, _new_columns)
_drop_sql_views(env)
update_account_move_amount_untaxed_in_currency_signed(env)
update_account_move_checked(env)
fill_account_move_preferred_payment_method_line_id(env)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ new model account.move.send.wizard [transient]
new model account.secure.entries.wizard [transient]
# NOTHING TO DO

obsolete model account.root [sql_view]
# DONE: pre-migration: drop view if exists

---Fields in module 'account'---
account / account.account / _order : _order is now 'code, placeholder_code' ('code, company_id')
account / account.account / code_mapping_ids (one2many) : NEW relation: account.code.mapping
Expand Down