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

[18.0][MIG] account_statement_import_file: Migration to 18.0 #736

Open
wants to merge 23 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
514c974
[MIG] account_statement_import_file to v16
alexis-via Mar 6, 2023
19ffa34
Translated using Weblate (Croatian)
badbole Apr 3, 2023
1196088
Translated using Weblate (Spanish)
Gelo-fl May 17, 2023
027e95d
account_statement_import_file: fix string
alexis-via Jun 8, 2023
745df7d
Translated using Weblate (French)
Jun 8, 2023
73cdd1a
Translated using Weblate (Portuguese (Brazil))
adrianojprado Jun 10, 2023
5d267af
Translated using Weblate (Portuguese (Brazil))
adrianojprado Jun 12, 2023
1ae8b33
[IMP] account_statement_import_file: Rename file_import selection val…
ao-landoo Jul 17, 2023
d960e85
Translated using Weblate (Spanish)
Ivorra78 Jul 29, 2023
24eda2d
Translated using Weblate (Catalan)
pere-aquarian Nov 18, 2023
a4803fb
[FIX] account_statement_import_file - add journal in stmt vals
jdidderen-noviat Nov 29, 2023
2192a12
[BOT] post-merge updates
OCA-git-bot Nov 29, 2023
717c0a6
Translated using Weblate (Italian)
mymage Dec 24, 2023
df8120d
Translated using Weblate (Italian)
mymage May 3, 2024
3c428a3
[IMP] account_statement_import_file: black, isort, prettier
manuelregidor May 8, 2024
89c7d6d
[17.0][MIG] account_statement_import_file: Migration to 17.0
manuelregidor May 8, 2024
ba6eaea
[17.0][ADD] account_statement_import_file: add file to statement's fi…
manuelregidor May 13, 2024
fd4057f
[BOT] post-merge updates
OCA-git-bot May 14, 2024
35ec98e
Translated using Weblate (Swedish)
jakobkrabbe Jun 5, 2024
55a0392
Translated using Weblate (Chinese (Simplified) (zh_CN))
xtanuiha Jun 12, 2024
fd315fa
[IMP] account_statement_import_file: pre-commit auto fixes
xaviedoanhduy Nov 6, 2024
deed2be
[MIG] account_statement_import_file: Migration to 18.0
xaviedoanhduy Nov 6, 2024
51ded18
[DON'T MERGE] Add test-requirements.txt
xaviedoanhduy Nov 6, 2024
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
141 changes: 141 additions & 0 deletions account_statement_import_file/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
======================
Import Statement Files
======================

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

.. |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/18.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-18-0/bank-statement-import-18-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=18.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:%2018.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

- Sygel - Manuel Regidor

- Trobz <https://www.trobz.com/>

- Do Anh Duy <[email protected]>

Other credits
-------------

The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp.

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/18.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": "18.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,
}
31 changes: 31 additions & 0 deletions account_statement_import_file/demo/partner_bank.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
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 noupdate="1">
<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