diff --git a/account_statement_import/migrations/14.0.1.0.0/pre-migration.py b/account_statement_import/migrations/14.0.1.0.0/pre-migration.py deleted file mode 100644 index a9bdf2e5..00000000 --- a/account_statement_import/migrations/14.0.1.0.0/pre-migration.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2022 ForgeFlow S.L. -# License LGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openupgradelib import openupgrade - -_model_renames = [ - ( - "account.bank.statement.import", - "account.statement.import", - ), -] - -_table_renames = [ - ( - "account_bank_statement_import", - "account_statement_import", - ), -] - - -@openupgrade.migrate() -def migrate(env, version): - openupgrade.rename_models(env.cr, _model_renames) - openupgrade.rename_tables(env.cr, _table_renames) diff --git a/account_statement_import/migrations/14.0.2.0.0/pre-migration.py b/account_statement_import/migrations/14.0.2.0.0/pre-migration.py deleted file mode 100644 index 945fcfdb..00000000 --- a/account_statement_import/migrations/14.0.2.0.0/pre-migration.py +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2022 ForgeFlow S.L. -# License LGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openupgradelib import openupgrade - - -@openupgrade.migrate() -def migrate(env, version): - if openupgrade.column_exists( - env.cr, "account_bank_statement_line", "partner_bank_id" - ): - # during v14, a partner_bank_id field was added to statement lines, - # but later we realized it is not needed. - # As we remove the explicit partner_bank_id in statement line, we need to transfer the - # values to the move for getting them through delegated inheritance - openupgrade.logged_query( - env.cr, - """ - UPDATE account_move am - SET partner_bank_id = absl.partner_bank_id - FROM account_bank_statement_line absl - WHERE am.statement_line_id = absl.id - AND am.partner_bank_id IS NULL AND absl.partner_bank_id IS NOT NULL""", - ) - openupgrade.lift_constraints( - env.cr, "account_bank_statement_line", "partner_bank_id" - ) diff --git a/account_statement_import/static/src/js/account_dashboard_kanban.js b/account_statement_import/static/src/js/account_dashboard_kanban.js deleted file mode 100644 index b45327e2..00000000 --- a/account_statement_import/static/src/js/account_dashboard_kanban.js +++ /dev/null @@ -1,25 +0,0 @@ -odoo.define("account_statement_import.dashboard.kanban", function (require) { - "use strict"; - var viewRegistry = require("web.view_registry"); - - var AccountDashboardView = viewRegistry.get("account_dashboard_kanban"); - // Value can be undefined on some test scenarios. Avoid an error by checking if it is defined - if (AccountDashboardView !== undefined) { - var AccountDashboardController = - AccountDashboardView.prototype.config.Controller; - AccountDashboardController.include({ - buttons_template: "AccountDashboardView.buttons", - // We are reusing the create button - _onButtonNew: function (ev) { - ev.stopPropagation(); - return this.trigger_up("do_action", { - action: "account_statement_import.account_statement_import_action", - }); - }, - }); - return { - AccountDashboardView: AccountDashboardView, - AccountDashboardController: AccountDashboardController, - }; - } -}); diff --git a/account_statement_import/static/src/xml/account_dashboard_kanban.xml b/account_statement_import/static/src/xml/account_dashboard_kanban.xml deleted file mode 100644 index 7a4cdfd2..00000000 --- a/account_statement_import/static/src/xml/account_dashboard_kanban.xml +++ /dev/null @@ -1,14 +0,0 @@ - - diff --git a/account_statement_import/templates/assets.xml b/account_statement_import/templates/assets.xml deleted file mode 100644 index ae901090..00000000 --- a/account_statement_import/templates/assets.xml +++ /dev/null @@ -1,11 +0,0 @@ - - -