Skip to content

Commit

Permalink
Merge PR #599 into 18.0
Browse files Browse the repository at this point in the history
Signed-off-by alexis-via
  • Loading branch information
OCA-git-bot committed Jan 31, 2025
2 parents 0c237f9 + a2ea7dc commit 2a7bf37
Show file tree
Hide file tree
Showing 22 changed files with 1,220 additions and 0 deletions.
103 changes: 103 additions & 0 deletions account_statement_import_fr_cfonb/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
===================================
Import French CFONB Bank Statements
===================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c627ce2e95357ac95655a00cf597d6ac7f24e00eed84f685a11199472fca8cf9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--france-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-france/tree/18.0/account_statement_import_fr_cfonb
:alt: OCA/l10n-france
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-france-18-0/l10n-france-18-0-account_statement_import_fr_cfonb
: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/l10n-france&target_branch=18.0
:alt: Try me on Runboat

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

This module allows you to import the text-based France-specific CFONB
bank statements files in Odoo.

The specifications are available on the `official CFONB
website <https://www.cfonb.org>`__ under the section *Espace
documentaire > Organisation des échanges > Restituation d'information*.
The document is named *Relevé de compte sur support informatique*
(`direct
link <https://www.cfonb.org/fichiers/20130612113947_7_4_Releve_de_Compte_sur_support_informatique_2004_07.pdf>`__).

Since Odoo v14, multi-account CFONB files are supported. When you import
such a file, several bank statements will be generated: one for each
bank account.

**Table of contents**

.. contents::
:local:

Usage
=====

In the dashboard of the *Invoicing* menu, click on the button *Import
(OCA)* on any bank journal and follow the instructions of the bank
statement import wizard.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-france/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/l10n-france/issues/new?body=module:%20account_statement_import_fr_cfonb%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
-------

* Akretion

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

- Alexis de Lattre <[email protected]>

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/l10n-france <https://github.com/OCA/l10n-france/tree/18.0/account_statement_import_fr_cfonb>`_ 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_fr_cfonb/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
16 changes: 16 additions & 0 deletions account_statement_import_fr_cfonb/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2014-2023 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Import French CFONB Bank Statements",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "Akretion,Odoo Community Association (OCA)",
"maintainers": ["alexis-via"],
"website": "https://github.com/OCA/l10n-france",
"summary": "Import CFONB bank statements files in Odoo",
"depends": ["account_statement_import_file"],
"data": ["views/account_statement_import.xml"],
"installable": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_statement_import_fr_cfonb
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_statement_import_fr_cfonb
#: model_terms:ir.ui.view,arch_db:account_statement_import_fr_cfonb.account_statement_import_form
msgid "CFONB (French format)"
msgstr ""

#. module: account_statement_import_fr_cfonb
#: model:ir.model,name:account_statement_import_fr_cfonb.model_account_statement_import
msgid "Import Bank Statement Files"
msgstr ""

#. module: account_statement_import_fr_cfonb
#: model:ir.model,name:account_statement_import_fr_cfonb.model_account_journal
msgid "Journal"
msgstr ""

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The CFONB file is inconsistent. Error on line %d."
msgstr ""

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The file is empty."
msgstr ""

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The file is not divisible in 120 char lines"
msgstr ""
53 changes: 53 additions & 0 deletions account_statement_import_fr_cfonb/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_statement_import_fr_cfonb
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-08-09 15:09+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: account_statement_import_fr_cfonb
#: model_terms:ir.ui.view,arch_db:account_statement_import_fr_cfonb.account_statement_import_form
msgid "CFONB (French format)"
msgstr "CFONB (formato francés)"

#. module: account_statement_import_fr_cfonb
#: model:ir.model,name:account_statement_import_fr_cfonb.model_account_statement_import
msgid "Import Bank Statement Files"
msgstr "Importar archivos de extractos bancarios"

#. module: account_statement_import_fr_cfonb
#: model:ir.model,name:account_statement_import_fr_cfonb.model_account_journal
msgid "Journal"
msgstr "Dario"

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The CFONB file is inconsistent. Error on line %d."
msgstr "El archivo CFONB es inconsistente. Error en la línea %d."

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The file is empty."
msgstr "El archivo está vacío."

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The file is not divisible in 120 char lines"
msgstr "El fichero no es divisible en líneas de 120 caracteres"
53 changes: 53 additions & 0 deletions account_statement_import_fr_cfonb/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_statement_import_fr_cfonb
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-06-08 16:08+0000\n"
"Last-Translator: Alexis de Lattre <[email protected]>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: account_statement_import_fr_cfonb
#: model_terms:ir.ui.view,arch_db:account_statement_import_fr_cfonb.account_statement_import_form
msgid "CFONB (French format)"
msgstr "CFONB (format français)"

#. module: account_statement_import_fr_cfonb
#: model:ir.model,name:account_statement_import_fr_cfonb.model_account_statement_import
msgid "Import Bank Statement Files"
msgstr "Importer des fichiers de relevé de compte"

#. module: account_statement_import_fr_cfonb
#: model:ir.model,name:account_statement_import_fr_cfonb.model_account_journal
msgid "Journal"
msgstr "Journal"

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The CFONB file is inconsistent. Error on line %d."
msgstr "Le fichier CFONB est incohérent. Erreur sur la ligne %d."

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The file is empty."
msgstr "Le fichier est vide."

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The file is not divisible in 120 char lines"
msgstr "Le fichier n'est pas divisible en lignes de 120 caractères"
72 changes: 72 additions & 0 deletions account_statement_import_fr_cfonb/i18n/nb_NO.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_bank_statement_import_fr_cfonb
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-30 10:45+0000\n"
"PO-Revision-Date: 2017-11-30 10:45+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/"
"teams/23907/nb_NO/)\n"
"Language: nb_NO\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: account_statement_import_fr_cfonb
#: model_terms:ir.ui.view,arch_db:account_statement_import_fr_cfonb.account_statement_import_form
msgid "CFONB (French format)"
msgstr ""

#. module: account_statement_import_fr_cfonb
#: model:ir.model,name:account_statement_import_fr_cfonb.model_account_statement_import
#, fuzzy
msgid "Import Bank Statement Files"
msgstr "Importer bankutsagn"

#. module: account_statement_import_fr_cfonb
#: model:ir.model,name:account_statement_import_fr_cfonb.model_account_journal
msgid "Journal"
msgstr ""

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The CFONB file is inconsistent. Error on line %d."
msgstr ""

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The file is empty."
msgstr "Filen er tom."

#. module: account_statement_import_fr_cfonb
#. odoo-python
#: code:addons/account_statement_import_fr_cfonb/wizard/account_statement_import.py:0
#, python-format
msgid "The file is not divisible in 120 char lines"
msgstr ""

#, python-format
#~ msgid ""
#~ "Line %d is %d caracters long. All lines of a CFONB bank statement file "
#~ "must be 120 caracters long."
#~ msgstr ""
#~ "Linje %d er %d tegn langt. Alle linjer i en CFONB-bankutsagnsfil må være "
#~ "120 tegn langt."

#~ msgid ""
#~ "Only single-account files and single-currency files are supported for the "
#~ "moment. It is not the case starting from line %d."
#~ msgstr ""
#~ "Kun enkeltkontofiler og enkeltmyntenhetsfiler støttes for øyeblikket. "
#~ "Dette er ikke tilfellet fra og med linje %d og utover."
1 change: 1 addition & 0 deletions account_statement_import_fr_cfonb/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_journal
14 changes: 14 additions & 0 deletions account_statement_import_fr_cfonb/models/account_journal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019-2020 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models


class AccountJournal(models.Model):
_inherit = "account.journal"

def _get_bank_statements_available_import_formats(self):
res = super()._get_bank_statements_available_import_formats()
res.append("CFONB")
return res
3 changes: 3 additions & 0 deletions account_statement_import_fr_cfonb/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions account_statement_import_fr_cfonb/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Alexis de Lattre \<<[email protected]>\>
12 changes: 12 additions & 0 deletions account_statement_import_fr_cfonb/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
This module allows you to import the text-based France-specific CFONB bank
statements files in Odoo.

The specifications are available on the [official CFONB
website](https://www.cfonb.org) under the section *Espace documentaire
\> Organisation des échanges \> Restituation d'information*. The
document is named *Relevé de compte sur support informatique* ([direct
link](https://www.cfonb.org/fichiers/20130612113947_7_4_Releve_de_Compte_sur_support_informatique_2004_07.pdf)).

Since Odoo v14, multi-account CFONB files are supported. When you import
such a file, several bank statements will be generated: one for each
bank account.
2 changes: 2 additions & 0 deletions account_statement_import_fr_cfonb/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
In the dashboard of the *Invoicing* menu, click on the button *Import (OCA)*
on any bank journal and follow the instructions of the bank statement import wizard.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2a7bf37

Please sign in to comment.