Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] account_stament_import_file: return JS Functionality #714

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions account_statement_import_file/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -77,6 +77,7 @@ Contributors
* Odoo S.A.
* Alexis de Lattre <[email protected]>
* Tecnativa - Pedro M. Baeza
* Dixmit - Enric Tobella

Maintainers
~~~~~~~~~~~
Expand All @@ -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.

Expand Down
8 changes: 7 additions & 1 deletion account_statement_import_file/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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,
}
1 change: 1 addition & 0 deletions account_statement_import_file/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Odoo S.A.
* Alexis de Lattre <[email protected]>
* Tecnativa - Pedro M. Baeza
* Dixmit - Enric Tobella
7 changes: 4 additions & 3 deletions account_statement_import_file/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Import Statement Files</h1>
!! 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>
Expand Down Expand Up @@ -420,6 +420,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<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">
Expand All @@ -429,8 +430,8 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<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>
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Original file line number Diff line number Diff line change
@@ -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>
Loading