Merge pull request #1062 from ForgeFlow/14.0-fix-account_payment_order_migration-script

[14.0][FIX] account_payment_order: refactor migration script
This commit is contained in:
Pedro M. Baeza
2023-03-09 17:57:32 +01:00
committed by GitHub
2 changed files with 11 additions and 0 deletions

View File

@@ -173,3 +173,6 @@ def migrate(env, version):
)
_delete_hooks(env)
_insert_payment_line_payment_link(env)
openupgrade.delete_records_safely_by_xml_id(
env, ["account_payment_order.bank_payment_line_company_rule"]
)

View File

@@ -0,0 +1,8 @@
# Copyright 2023 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
openupgrade.remove_tables_fks(env.cr, ["bank_payment_line"])