diff --git a/account_payment_mode/hooks.py b/account_payment_mode/hooks.py index 1c7770b39..6fb581980 100644 --- a/account_payment_mode/hooks.py +++ b/account_payment_mode/hooks.py @@ -22,6 +22,9 @@ def migrate_from_8(cr): cr.execute('ALTER SEQUENCE payment_mode_id_seq ' 'RENAME TO account_payment_mode_id_seq') # Set fixed bank account in all, which is the equivalent behavior in v8 + cr.execute( + "ALTER TABLE account_payment_mode ADD bank_account_link VARCHAR" + ) cr.execute("UPDATE account_payment_mode SET bank_account_link='fixed'") cr.execute( 'ALTER TABLE account_payment_mode '