From 47ae2852e62ab0481dea7a30b2b3c96429be8393 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Mon, 12 Aug 2024 23:45:40 +0200 Subject: [PATCH] [FIX] account_stament_import_file: return JS Functionality --- account_statement_import_file/README.rst | 10 +++++--- account_statement_import_file/__manifest__.py | 8 ++++++- .../readme/CONTRIBUTORS.rst | 1 + .../static/description/index.html | 7 +++--- .../account_statement_import_file.esm.js | 16 +++++++++++++ .../account_statement_import_file.xml | 24 +++++++++++++++++++ 6 files changed, 59 insertions(+), 7 deletions(-) create mode 100644 account_statement_import_file/static/src/account_statement_import_file/account_statement_import_file.esm.js create mode 100644 account_statement_import_file/static/src/account_statement_import_file/account_statement_import_file.xml diff --git a/account_statement_import_file/README.rst b/account_statement_import_file/README.rst index 6f886904..723ce484 100644 --- a/account_statement_import_file/README.rst +++ b/account_statement_import_file/README.rst @@ -7,7 +7,7 @@ Import Statement Files !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:05b01603d319c8d76bf854f4c741c8439547285d1db7cfddfdd65d8c75a06e54 + !! source digest: sha256:74755549320a88680dd6052fa9350443adf003edf19736d6f0888a30fbee216d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png @@ -77,6 +77,7 @@ Contributors * Odoo S.A. * Alexis de Lattre * Tecnativa - Pedro M. Baeza +* Dixmit - Enric Tobella Maintainers ~~~~~~~~~~~ @@ -94,10 +95,13 @@ promote its widespread use. .. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px :target: https://github.com/alexis-via :alt: alexis-via +.. |maintainer-etobella| image:: https://github.com/etobella.png?size=40px + :target: https://github.com/etobella + :alt: etobella -Current `maintainer `__: +Current `maintainers `__: -|maintainer-alexis-via| +|maintainer-alexis-via| |maintainer-etobella| This module is part of the `OCA/bank-statement-import `_ project on GitHub. diff --git a/account_statement_import_file/__manifest__.py b/account_statement_import_file/__manifest__.py index 6f510dfe..19d82ca5 100644 --- a/account_statement_import_file/__manifest__.py +++ b/account_statement_import_file/__manifest__.py @@ -10,7 +10,7 @@ "license": "LGPL-3", "depends": ["account_statement_import_base"], "author": "Odoo SA, Akretion, Odoo Community Association (OCA)", - "maintainers": ["alexis-via"], + "maintainers": ["alexis-via", "etobella"], "development_status": "Mature", "website": "https://github.com/OCA/bank-statement-import", "data": [ @@ -21,5 +21,11 @@ "demo": [ "demo/partner_bank.xml", ], + "assets": { + "web.assets_backend": [ + "account_statement_import_file/static/src/**/*.xml", + "account_statement_import_file/static/src/**/*.esm.js", + ], + }, "installable": True, } diff --git a/account_statement_import_file/readme/CONTRIBUTORS.rst b/account_statement_import_file/readme/CONTRIBUTORS.rst index 54f339ba..7d93738f 100644 --- a/account_statement_import_file/readme/CONTRIBUTORS.rst +++ b/account_statement_import_file/readme/CONTRIBUTORS.rst @@ -1,3 +1,4 @@ * Odoo S.A. * Alexis de Lattre * Tecnativa - Pedro M. Baeza +* Dixmit - Enric Tobella diff --git a/account_statement_import_file/static/description/index.html b/account_statement_import_file/static/description/index.html index efd3f47e..cb6f1cb9 100644 --- a/account_statement_import_file/static/description/index.html +++ b/account_statement_import_file/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:05b01603d319c8d76bf854f4c741c8439547285d1db7cfddfdd65d8c75a06e54 +!! source digest: sha256:74755549320a88680dd6052fa9350443adf003edf19736d6f0888a30fbee216d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Mature License: LGPL-3 OCA/bank-statement-import Translate me on Weblate Try me on Runboat

This module is the successor of the module account_bank_statement_import that was part of Odoo Community until Odoo v13 and was moved to Odoo Enterprise for Odoo v14 (cf this commit). We decided to change its name and the name of the wizard object it provides in order to avoid a conflict with the Enterprise module.

@@ -420,6 +420,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
  • Odoo S.A.
  • Alexis de Lattre <alexis.delattre@akretion.com>
  • Tecnativa - Pedro M. Baeza
  • +
  • Dixmit - Enric Tobella
  • @@ -429,8 +430,8 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

    OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

    -

    Current maintainer:

    -

    alexis-via

    +

    Current maintainers:

    +

    alexis-via etobella

    This module is part of the OCA/bank-statement-import project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    diff --git a/account_statement_import_file/static/src/account_statement_import_file/account_statement_import_file.esm.js b/account_statement_import_file/static/src/account_statement_import_file/account_statement_import_file.esm.js new file mode 100644 index 00000000..aa294b8d --- /dev/null +++ b/account_statement_import_file/static/src/account_statement_import_file/account_statement_import_file.esm.js @@ -0,0 +1,16 @@ +/** @odoo-module **/ + +import {DashboardKanbanView} from "@account/components/bills_upload/bills_upload"; + +export class DashboardKanbanController extends DashboardKanbanView.Controller { + async uploadStatement() { + console.log(this); + return this.actionService.doAction( + "account_statement_import_file.account_statement_import_action" + ); + } +} + +DashboardKanbanView.Controller = DashboardKanbanController; +DashboardKanbanView.buttonTemplate = + "account_statement_import_file.DashboardKanbanView.Buttons"; diff --git a/account_statement_import_file/static/src/account_statement_import_file/account_statement_import_file.xml b/account_statement_import_file/static/src/account_statement_import_file/account_statement_import_file.xml new file mode 100644 index 00000000..5a86e082 --- /dev/null +++ b/account_statement_import_file/static/src/account_statement_import_file/account_statement_import_file.xml @@ -0,0 +1,24 @@ + + + + + + + +