Skip to content
Closed
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
7 changes: 7 additions & 0 deletions addons/account_voucher/migrations/9.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@

def delete_payment_views(cr):
"""Delete account.voucher payment views that hinder upgrade."""
cr.execute(
"""\
DELETE FROM ir_ui_view
WHERE inherit_id in (
SELECT id FROM ir_ui_view WHERE name like '%account.voucher.payment%')
"""
)
cr.execute(
"""\
DELETE FROM ir_ui_view
Expand Down