mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_banking_pain_base: Avoid running migration scripts on installation
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
from openupgradelib import openupgrade
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(cr, version):
|
||||
"""Copy convert_to_ascii to account_payment_method."""
|
||||
sql = """
|
||||
|
||||
@@ -11,5 +11,6 @@ column_renames = {
|
||||
}
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(cr, version):
|
||||
openupgrade.rename_columns(cr, column_renames)
|
||||
|
||||
Reference in New Issue
Block a user