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

[17.0][MIG] account_statement_import_file: Migration to 17.0 #649

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
127 changes: 127 additions & 0 deletions account_statement_import_file/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
======================
Import Statement Files
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:05b01603d319c8d76bf854f4c741c8439547285d1db7cfddfdd65d8c75a06e54
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github
:target: https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_file
:alt: OCA/bank-statement-import
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/bank-statement-import-17-0/bank-statement-import-17-0-account_statement_import_file
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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 <https://github.com/odoo/odoo/commit/9ba8734f15e1a292ca27b1a026e8366a91b2a8c9>`__).
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.

This module has several additionnal feature:

- support multi-account bank statement files,
- attach the file to the bank statement (to facilitate the diagnostic
in case of problem),
- improved error messages.

This module only provides the technical framework for the import of
statement files. You must also install the format-specific modules to
add support for the statement file formats that your banks/provide use.
For example, the OCA module **account_statement_import_ofx** will add
support for the OFX (Open Financial Exchange) file format. You will find
those modules in the OCA project
`bank-statement-import <https://github.com/OCA/bank-statement-import>`__
or, for the country-specific formats, in the OCA localization projects.

**Table of contents**

.. contents::
:local:

Usage
=====

To import a statement file, go to the Invoicing dashboard: on a bank
journal, you will see a button to import a statement. When you click on
that button, a wizard will start and it will show the list of the
supported file formats. Select the statement file that you want to
import and click on the **Import** button. Odoo will create a new bank
statement (or several if your statement file is a multi-account file).

If your statement file contains transactions that were already imported
in Odoo, they will not be created a second time.

If the statement file contains information about the bank account number
of the counter-part for some transactions (only a few statement file
formats support that, in some countries) and that these bank account
numbers exists on partners in Odoo, the partners will be set on the
related statement lines.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-statement-import/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_file%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Odoo SA
* Akretion

Contributors
------------

- Odoo S.A.
- Alexis de Lattre <[email protected]>
- Tecnativa - Pedro M. Baeza

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
:target: https://github.com/alexis-via
:alt: alexis-via

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-alexis-via|

This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/17.0/account_statement_import_file>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions account_statement_import_file/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
25 changes: 25 additions & 0 deletions account_statement_import_file/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2004-2020 Odoo S.A.
# Copyright 2020 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).

{
"name": "Import Statement Files",
"category": "Accounting",
"version": "17.0.1.0.0",
"license": "LGPL-3",
"depends": ["account_statement_import_base"],
"author": "Odoo SA, Akretion, Odoo Community Association (OCA)",
"maintainers": ["alexis-via"],
"development_status": "Mature",
"website": "https://github.com/OCA/bank-statement-import",
"data": [
"security/ir.model.access.csv",
"wizard/account_statement_import_view.xml",
"views/account_journal.xml",
],
"demo": [
"demo/partner_bank.xml",
],
"installable": True,
}
32 changes: 32 additions & 0 deletions account_statement_import_file/demo/partner_bank.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!--
Copyright 2004-2020 Odoo S.A.
Copyright 2022 Moduon Team <[email protected]>
Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
-->
<odoo>

<record id="ofx_partner_bank_1" model="res.partner.bank">
<field name="acc_number">BE02631118262640</field>
<field name="partner_id" ref="base.res_partner_2" />
<field name="bank_id" ref="base.res_bank_1" />
</record>

<record id="ofx_partner_bank_2" model="res.partner.bank">
<field name="acc_number">20987654321</field>
<field name="partner_id" ref="base.res_partner_3" />
<field name="bank_id" ref="base.res_bank_1" />
</record>

<record id="qif_partner_bank_1" model="res.partner.bank">
<field name="acc_number">21987654321</field>
<field name="partner_id" ref="base.res_partner_4" />
<field name="bank_id" ref="base.res_bank_1" />
</record>

<record id="qif_partner_bank_2" model="res.partner.bank">
<field name="acc_number">22987654321</field>
<field name="partner_id" ref="base.res_partner_3" />
<field name="bank_id" ref="base.res_bank_1" />
</record>

</odoo>
Loading
Loading