mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
The 2 modules account_statement_import_online and account_statement_import depend on account_statement_import_base (and not on each other) and share common code, in particular a hook to update the statement line. So we can now have reconciliation modules that use this hook and therefore work both on file import and online import. More details on https://github.com/OCA/bank-statement-import/issues/481. Improve bank statement line form view and journal form view.
18 lines
623 B
Python
18 lines
623 B
Python
# Copyright 2022 Akretion France (http://www.akretion.com/)
|
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from openupgradelib import openupgrade
|
|
|
|
|
|
@openupgrade.migrate()
|
|
def migrate(env, version):
|
|
column = openupgrade.get_legacy_name("online_raw_data")
|
|
if openupgrade.column_exists(env.cr, "account_bank_statement_line", column):
|
|
openupgrade.logged_query(
|
|
env.cr,
|
|
"UPDATE account_bank_statement_line SET raw_data={online_raw_data}".format(
|
|
online_raw_data=column,
|
|
),
|
|
)
|