[FIX] account_stament_import_file: return JS Functionality

This commit is contained in:
Enric Tobella
2024-08-12 23:45:40 +02:00
parent f579b750f1
commit 47ae2852e6
6 changed files with 59 additions and 7 deletions

View File

@@ -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 <alexis.delattre@akretion.com>
* 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 <https://odoo-community.org/page/maintainer-role>`__:
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-alexis-via|
|maintainer-alexis-via| |maintainer-etobella|
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/16.0/account_statement_import_file>`_ project on GitHub.

View File

@@ -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,
}

View File

@@ -1,3 +1,4 @@
* Odoo S.A.
* Alexis de Lattre <alexis.delattre@akretion.com>
* Tecnativa - Pedro M. Baeza
* Dixmit - Enric Tobella

View File

@@ -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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/bank-statement-import/tree/16.0/account_statement_import_file"><img alt="OCA/bank-statement-import" src="https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/bank-statement-import-16-0/bank-statement-import-16-0-account_statement_import_file"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module is the successor of the module <strong>account_bank_statement_import</strong> that was part of Odoo Community until Odoo v13 and was moved to Odoo Enterprise for Odoo v14 (cf <a class="reference external" href="https://github.com/odoo/odoo/commit/9ba8734f15e1a292ca27b1a026e8366a91b2a8c9">this commit</a>). 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.</p>
@@ -420,6 +420,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<li>Odoo S.A.</li>
<li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li>
<li>Tecnativa - Pedro M. Baeza</li>
<li>Dixmit - Enric Tobella</li>
</ul>
</div>
<div class="section" id="maintainers">
@@ -429,8 +430,8 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<p>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.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/alexis-via"><img alt="alexis-via" src="https://github.com/alexis-via.png?size=40px" /></a></p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/alexis-via"><img alt="alexis-via" src="https://github.com/alexis-via.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/etobella"><img alt="etobella" src="https://github.com/etobella.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/bank-statement-import/tree/16.0/account_statement_import_file">OCA/bank-statement-import</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>

View File

@@ -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";

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates>
<t
t-name="account_statement_import_file.DashboardKanbanView.Buttons"
t-inherit="web.KanbanView.Buttons"
t-inherit-mode="primary"
owl="1"
>
<xpath
expr="//*[@class='o_cp_buttons d-flex align-items-baseline']"
position="inside"
>
<button
type="button"
class="btn btn-primary o-kanban-button-upload-statement"
accesskey="c"
t-on-click="() => this.uploadStatement()"
data-bounce-button=""
>
Import Statement (OCA)
</button>
</xpath>
</t>
</templates>