From cb29db252def3e4db86caa3c36f53b95d4da1ee3 Mon Sep 17 00:00:00 2001 From: Maxence Groine Date: Fri, 1 Jun 2018 15:10:44 +0200 Subject: [PATCH 01/12] Rename module Also: - Use context managers for file opening/closing in tests - Changed use of deprecated `BadZipfile` exception - Removed debugging code left by mistake --- .../README.rst | 52 ++++ .../__init__.py | 3 + .../__manifest__.py | 16 ++ .../i18n/de.po | 24 ++ .../i18n/es.po | 55 ++++ .../i18n/fi.po | 34 +++ .../i18n/fr.po | 55 ++++ .../i18n/fr_CH.po | 34 +++ .../i18n/gl.po | 34 +++ .../i18n/hr.po | 54 ++++ .../i18n/lt_LT.po | 23 ++ .../i18n/nb_NO.po | 34 +++ .../i18n/nl.po | 24 ++ .../i18n/pt_BR.po | 23 ++ .../i18n/pt_PT.po | 23 ++ .../i18n/sl.po | 23 ++ .../models/__init__.py | 4 + .../models/account_bank_statement_import.py | 40 +++ .../models/parser.py | 240 +++++++++++++++++ .../test_files/golden-camt053-txdtls.pydata | 18 ++ .../test_files/golden-camt053.pydata | 27 ++ .../test_files/test-camt053 | 241 ++++++++++++++++++ .../test_files/test-camt053-txdtls | 214 ++++++++++++++++ .../test_files/test-camt053.zip | Bin 0 -> 3111 bytes .../tests/__init__.py | 4 + .../tests/test_import_bank_statement.py | 127 +++++++++ .../views/account_bank_statement_import.xml | 13 + 27 files changed, 1439 insertions(+) create mode 100644 account_bank_statement_import_camt_oca/README.rst create mode 100644 account_bank_statement_import_camt_oca/__init__.py create mode 100644 account_bank_statement_import_camt_oca/__manifest__.py create mode 100644 account_bank_statement_import_camt_oca/i18n/de.po create mode 100644 account_bank_statement_import_camt_oca/i18n/es.po create mode 100644 account_bank_statement_import_camt_oca/i18n/fi.po create mode 100644 account_bank_statement_import_camt_oca/i18n/fr.po create mode 100644 account_bank_statement_import_camt_oca/i18n/fr_CH.po create mode 100644 account_bank_statement_import_camt_oca/i18n/gl.po create mode 100644 account_bank_statement_import_camt_oca/i18n/hr.po create mode 100644 account_bank_statement_import_camt_oca/i18n/lt_LT.po create mode 100644 account_bank_statement_import_camt_oca/i18n/nb_NO.po create mode 100644 account_bank_statement_import_camt_oca/i18n/nl.po create mode 100644 account_bank_statement_import_camt_oca/i18n/pt_BR.po create mode 100644 account_bank_statement_import_camt_oca/i18n/pt_PT.po create mode 100644 account_bank_statement_import_camt_oca/i18n/sl.po create mode 100644 account_bank_statement_import_camt_oca/models/__init__.py create mode 100644 account_bank_statement_import_camt_oca/models/account_bank_statement_import.py create mode 100644 account_bank_statement_import_camt_oca/models/parser.py create mode 100644 account_bank_statement_import_camt_oca/test_files/golden-camt053-txdtls.pydata create mode 100644 account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata create mode 100644 account_bank_statement_import_camt_oca/test_files/test-camt053 create mode 100644 account_bank_statement_import_camt_oca/test_files/test-camt053-txdtls create mode 100644 account_bank_statement_import_camt_oca/test_files/test-camt053.zip create mode 100644 account_bank_statement_import_camt_oca/tests/__init__.py create mode 100644 account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py create mode 100644 account_bank_statement_import_camt_oca/views/account_bank_statement_import.xml diff --git a/account_bank_statement_import_camt_oca/README.rst b/account_bank_statement_import_camt_oca/README.rst new file mode 100644 index 0000000..327bd47 --- /dev/null +++ b/account_bank_statement_import_camt_oca/README.rst @@ -0,0 +1,52 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: https://www.gnu.com/licenses/agpl + :alt: License: AGPL-3 + +========================= +Bank Statement Parse Camt +========================= + +Module to import SEPA CAMT.053 and CAMT.054 Format bank statement files. + +Based on the Banking addons framework. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/174/11.0 + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing a detailed and welcomed feedback. + + +Credits +======= + +Contributors +------------ + +* Holger Brunn +* Stefan Rijnhart +* Ronald Portier +* Andrea Stirpe +* Maxence Groine + +Do not contact contributors directly about support or help with technical issues. + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit http://odoo-community.org. diff --git a/account_bank_statement_import_camt_oca/__init__.py b/account_bank_statement_import_camt_oca/__init__.py new file mode 100644 index 0000000..867022b --- /dev/null +++ b/account_bank_statement_import_camt_oca/__init__.py @@ -0,0 +1,3 @@ +# © 2013-2016 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from . import models diff --git a/account_bank_statement_import_camt_oca/__manifest__.py b/account_bank_statement_import_camt_oca/__manifest__.py new file mode 100644 index 0000000..f2ca11a --- /dev/null +++ b/account_bank_statement_import_camt_oca/__manifest__.py @@ -0,0 +1,16 @@ +# © 2013-2017 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + 'name': 'CAMT Format Bank Statements Import', + 'version': '11.0.1.0.0', + 'license': 'AGPL-3', + 'author': 'Odoo Community Association (OCA), Therp BV', + 'website': 'https://github.com/OCA/bank-statement-import', + 'category': 'Banking addons', + 'depends': [ + 'account_bank_statement_import', + ], + 'data': [ + 'views/account_bank_statement_import.xml', + ], +} diff --git a/account_bank_statement_import_camt_oca/i18n/de.po b/account_bank_statement_import_camt_oca/i18n/de.po new file mode 100644 index 0000000..f4d4e71 --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/de.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-statement-import (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-24 21:51+0000\n" +"PO-Revision-Date: 2015-10-04 11:43+0200\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: French (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Poedit 1.8.3\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Kontoauszug importieren" diff --git a/account_bank_statement_import_camt_oca/i18n/es.po b/account_bank_statement_import_camt_oca/i18n/es.po new file mode 100644 index 0000000..e56d7f8 --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/es.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +# OCA Transbot , 2017 +# enjolras , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-21 01:41+0000\n" +"PO-Revision-Date: 2018-02-21 01:41+0000\n" +"Last-Translator: enjolras , 2018\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "CAMT" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_display_name +msgid "Display Name" +msgstr "Nombre a mostrar" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_id +msgid "ID" +msgstr "ID" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Importar extracto bancario" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser___last_update +msgid "Last Modified on" +msgstr "Última modificación en" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_oca_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "account.bank.statement.import.camt.parser" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "CAMT en .zip" diff --git a/account_bank_statement_import_camt_oca/i18n/fi.po b/account_bank_statement_import_camt_oca/i18n/fi.po new file mode 100644 index 0000000..f91f6c9 --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/fi.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +# Jarmo Kortetjärvi , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-10 05:00+0000\n" +"PO-Revision-Date: 2016-12-10 05:00+0000\n" +"Last-Translator: Jarmo Kortetjärvi , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Tuo pankkiaineisto" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/fr.po b/account_bank_statement_import_camt_oca/i18n/fr.po new file mode 100644 index 0000000..11f802f --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/fr.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +# Quentin THEURET , 2017 +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-21 01:42+0000\n" +"PO-Revision-Date: 2017-11-21 01:42+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "CAMT" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_display_name +msgid "Display Name" +msgstr "Nom affiché" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_id +msgid "ID" +msgstr "ID" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Importer Relevé Bancaire" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser___last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_oca_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "CAMT zippé" diff --git a/account_bank_statement_import_camt_oca/i18n/fr_CH.po b/account_bank_statement_import_camt_oca/i18n/fr_CH.po new file mode 100644 index 0000000..4a5d587 --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/fr_CH.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-09 17:00+0000\n" +"PO-Revision-Date: 2016-12-09 17:00+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: French (Switzerland) (https://www.transifex.com/oca/teams/23907/fr_CH/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr_CH\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Importer Relevé" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/gl.po b/account_bank_statement_import_camt_oca/i18n/gl.po new file mode 100644 index 0000000..b8d5ab4 --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/gl.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +# Alejandro Santana , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-09 17:00+0000\n" +"PO-Revision-Date: 2016-12-09 17:00+0000\n" +"Last-Translator: Alejandro Santana , 2016\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: gl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Importar extracto bancario" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/hr.po b/account_bank_statement_import_camt_oca/i18n/hr.po new file mode 100644 index 0000000..b8d38f5 --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/hr.po @@ -0,0 +1,54 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-21 01:41+0000\n" +"PO-Revision-Date: 2018-02-21 01:41+0000\n" +"Last-Translator: Bole , 2018\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "CAMT" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_display_name +msgid "Display Name" +msgstr "Naziv" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_id +msgid "ID" +msgstr "ID" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Uvoz bankovnog izvoda" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser___last_update +msgid "Last Modified on" +msgstr "Zadnje modificirano" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_oca_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "account.bank.statement.import.camt.parser" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "kompresirani CAMT" diff --git a/account_bank_statement_import_camt_oca/i18n/lt_LT.po b/account_bank_statement_import_camt_oca/i18n/lt_LT.po new file mode 100644 index 0000000..0820966 --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/lt_LT.po @@ -0,0 +1,23 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-statement-import (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-24 21:51+0000\n" +"PO-Revision-Date: 2015-07-24 07:41+0000\n" +"Last-Translator: <>\n" +"Language-Team: Lithuanian (Lithuania) (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/lt_LT/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: lt_LT\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Importuoti banko išrašą" diff --git a/account_bank_statement_import_camt_oca/i18n/nb_NO.po b/account_bank_statement_import_camt_oca/i18n/nb_NO.po new file mode 100644 index 0000000..ad504a0 --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/nb_NO.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +# Imre Kristoffer Eilertsen , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-09 17:00+0000\n" +"PO-Revision-Date: 2016-12-09 17:00+0000\n" +"Last-Translator: Imre Kristoffer Eilertsen , 2016\n" +"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/teams/23907/nb_NO/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nb_NO\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Importer bankutsagn" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/nl.po b/account_bank_statement_import_camt_oca/i18n/nl.po new file mode 100644 index 0000000..fa6dec9 --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/nl.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +# Erwin van der Ploeg , 2015 +msgid "" +msgstr "" +"Project-Id-Version: bank-statement-import (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-24 21:51+0000\n" +"PO-Revision-Date: 2015-07-31 06:44+0000\n" +"Last-Translator: Erwin van der Ploeg \n" +"Language-Team: Dutch (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/nl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Importeer bankafschrift" diff --git a/account_bank_statement_import_camt_oca/i18n/pt_BR.po b/account_bank_statement_import_camt_oca/i18n/pt_BR.po new file mode 100644 index 0000000..c27fa00 --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/pt_BR.po @@ -0,0 +1,23 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-statement-import (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-09 09:23+0000\n" +"PO-Revision-Date: 2015-10-09 00:26+0000\n" +"Last-Translator: danimaribeiro \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Importar Extrato Bancário" diff --git a/account_bank_statement_import_camt_oca/i18n/pt_PT.po b/account_bank_statement_import_camt_oca/i18n/pt_PT.po new file mode 100644 index 0000000..62f2b77 --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/pt_PT.po @@ -0,0 +1,23 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-statement-import (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-08-18 10:27+0000\n" +"PO-Revision-Date: 2015-07-24 07:41+0000\n" +"Last-Translator: <>\n" +"Language-Team: Portuguese (Portugal) (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/pt_PT/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_PT\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Importar Extrato Bancário" diff --git a/account_bank_statement_import_camt_oca/i18n/sl.po b/account_bank_statement_import_camt_oca/i18n/sl.po new file mode 100644 index 0000000..fe1211d --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/sl.po @@ -0,0 +1,23 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: bank-statement-import (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-24 21:51+0000\n" +"PO-Revision-Date: 2015-07-25 12:19+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "Uvoz bančnega izpiska" diff --git a/account_bank_statement_import_camt_oca/models/__init__.py b/account_bank_statement_import_camt_oca/models/__init__.py new file mode 100644 index 0000000..8b7d2c6 --- /dev/null +++ b/account_bank_statement_import_camt_oca/models/__init__.py @@ -0,0 +1,4 @@ +# © 2013-2016 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from . import parser +from . import account_bank_statement_import diff --git a/account_bank_statement_import_camt_oca/models/account_bank_statement_import.py b/account_bank_statement_import_camt_oca/models/account_bank_statement_import.py new file mode 100644 index 0000000..f3ec1a5 --- /dev/null +++ b/account_bank_statement_import_camt_oca/models/account_bank_statement_import.py @@ -0,0 +1,40 @@ +"""Add process_camt method to account.bank.statement.import.""" +# © 2013-2016 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +import logging +from io import BytesIO +import zipfile +from odoo import api, models + +_logger = logging.getLogger(__name__) + + +class AccountBankStatementImport(models.TransientModel): + """Add process_camt method to account.bank.statement.import.""" + _inherit = 'account.bank.statement.import' + + @api.model + def _parse_file(self, data_file): + """Parse a CAMT053 XML file.""" + try: + parser = self.env['account.bank.statement.import.camt.parser'] + _logger.debug("Try parsing with camt.") + return parser.parse(data_file) + except ValueError: + try: + with zipfile.ZipFile(BytesIO(data_file)) as data: + currency = None + account_number = None + transactions = [] + for member in data.namelist(): + currency, account_number, new = self._parse_file( + data.open(member).read() + ) + transactions.extend(new) + return currency, account_number, transactions + except (zipfile.BadZipFile, ValueError): + pass + # Not a camt file, returning super will call next candidate: + _logger.debug("Statement file was not a camt file.", + exc_info=True) + return super(AccountBankStatementImport, self)._parse_file(data_file) diff --git a/account_bank_statement_import_camt_oca/models/parser.py b/account_bank_statement_import_camt_oca/models/parser.py new file mode 100644 index 0000000..0668422 --- /dev/null +++ b/account_bank_statement_import_camt_oca/models/parser.py @@ -0,0 +1,240 @@ +"""Class to parse camt files.""" +# © 2013-2016 Therp BV +# Copyright 2017 Open Net Sàrl +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +import re +from lxml import etree + +from odoo import models + + +class CamtParser(models.AbstractModel): + """Parser for camt bank statement import files.""" + _name = 'account.bank.statement.import.camt.parser' + + def parse_amount(self, ns, node): + """Parse element that contains Amount and CreditDebitIndicator.""" + if node is None: + return 0.0 + sign = 1 + amount = 0.0 + sign_node = node.xpath('ns:CdtDbtInd', namespaces={'ns': ns}) + if sign_node and sign_node[0].text == 'DBIT': + sign = -1 + amount_node = node.xpath('ns:Amt', namespaces={'ns': ns}) + if amount_node: + amount = sign * float(amount_node[0].text) + return amount + + def add_value_from_node( + self, ns, node, xpath_str, obj, attr_name, join_str=None): + """Add value to object from first or all nodes found with xpath. + + If xpath_str is a list (or iterable), it will be seen as a series + of search path's in order of preference. The first item that results + in a found node will be used to set a value.""" + if not isinstance(xpath_str, (list, tuple)): + xpath_str = [xpath_str] + for search_str in xpath_str: + found_node = node.xpath(search_str, namespaces={'ns': ns}) + if found_node: + if join_str is None: + attr_value = found_node[0].text + else: + attr_value = join_str.join([x.text for x in found_node]) + obj[attr_name] = attr_value + break + + def parse_transaction_details(self, ns, node, transaction): + """Parse TxDtls node.""" + # message + self.add_value_from_node( + ns, node, [ + './ns:RmtInf/ns:Ustrd', + './ns:AddtlNtryInf', + './ns:Refs/ns:InstrId', + ], transaction, 'note', join_str='\n') + # name + self.add_value_from_node( + ns, node, [ + './ns:AddtlTxInf', + ], transaction, 'name', join_str='\n') + # eref + self.add_value_from_node( + ns, node, [ + './ns:RmtInf/ns:Strd/ns:CdtrRefInf/ns:Ref', + './ns:Refs/ns:EndToEndId', + './ns:Ntry/ns:AcctSvcrRef' + ], + transaction, 'ref' + ) + amount = self.parse_amount(ns, node) + if amount != 0.0: + transaction['amount'] = amount + # remote party values + party_type = 'Dbtr' + party_type_node = node.xpath( + '../../ns:CdtDbtInd', namespaces={'ns': ns}) + if party_type_node and party_type_node[0].text != 'CRDT': + party_type = 'Cdtr' + party_node = node.xpath( + './ns:RltdPties/ns:%s' % party_type, namespaces={'ns': ns}) + if party_node: + self.add_value_from_node( + ns, party_node[0], './ns:Nm', transaction, 'partner_name') + # Get remote_account from iban or from domestic account: + account_node = node.xpath( + './ns:RltdPties/ns:%sAcct/ns:Id' % party_type, + namespaces={'ns': ns} + ) + if account_node: + iban_node = account_node[0].xpath( + './ns:IBAN', namespaces={'ns': ns}) + if iban_node: + transaction['account_number'] = iban_node[0].text + else: + self.add_value_from_node( + ns, account_node[0], './ns:Othr/ns:Id', transaction, + 'account_number' + ) + + def parse_entry(self, ns, node): + """Parse an Ntry node and yield transactions""" + transaction = {'name': '/', 'amount': 0} # fallback defaults + self.add_value_from_node( + ns, node, './ns:BookgDt/ns:Dt', transaction, 'date') + amount = self.parse_amount(ns, node) + if amount != 0.0: + transaction['amount'] = amount + self.add_value_from_node( + ns, node, './ns:AddtlNtryInf', transaction, 'name') + self.add_value_from_node( + ns, node, [ + './ns:NtryDtls/ns:RmtInf/ns:Strd/ns:CdtrRefInf/ns:Ref', + './ns:NtryDtls/ns:Btch/ns:PmtInfId', + './ns:NtryDtls/ns:TxDtls/ns:Refs/ns:AcctSvcrRef' + ], + transaction, 'ref' + ) + + details_nodes = node.xpath( + './ns:NtryDtls/ns:TxDtls', namespaces={'ns': ns}) + if len(details_nodes) == 0: + yield transaction + return + transaction_base = transaction + for node in details_nodes: + transaction = transaction_base.copy() + self.parse_transaction_details(ns, node, transaction) + yield transaction + + def get_balance_amounts(self, ns, node): + """Return opening and closing balance. + + Depending on kind of balance and statement, the balance might be in a + different kind of node: + OPBD = OpeningBalance + PRCD = PreviousClosingBalance + ITBD = InterimBalance (first ITBD is start-, second is end-balance) + CLBD = ClosingBalance + """ + start_balance_node = None + end_balance_node = None + for node_name in ['OPBD', 'PRCD', 'CLBD', 'ITBD']: + code_expr = ( + './ns:Bal/ns:Tp/ns:CdOrPrtry/ns:Cd[text()="%s"]/../../..' % + node_name + ) + balance_node = node.xpath(code_expr, namespaces={'ns': ns}) + if balance_node: + if node_name in ['OPBD', 'PRCD']: + start_balance_node = balance_node[0] + elif node_name == 'CLBD': + end_balance_node = balance_node[0] + else: + if not start_balance_node: + start_balance_node = balance_node[0] + if not end_balance_node: + end_balance_node = balance_node[-1] + return ( + self.parse_amount(ns, start_balance_node), + self.parse_amount(ns, end_balance_node) + ) + + def parse_statement(self, ns, node): + """Parse a single Stmt node.""" + result = {} + self.add_value_from_node( + ns, node, [ + './ns:Acct/ns:Id/ns:IBAN', + './ns:Acct/ns:Id/ns:Othr/ns:Id', + ], result, 'account_number' + ) + self.add_value_from_node( + ns, node, './ns:Id', result, 'name') + self.add_value_from_node( + ns, node, './ns:Acct/ns:Ccy', result, 'currency') + result['balance_start'], result['balance_end_real'] = ( + self.get_balance_amounts(ns, node)) + entry_nodes = node.xpath('./ns:Ntry', namespaces={'ns': ns}) + transactions = [] + for entry_node in entry_nodes: + transactions.extend(self.parse_entry(ns, entry_node)) + result['transactions'] = transactions + result['date'] = sorted(transactions, + key=lambda x: x['date'], + reverse=True + )[0]['date'] + return result + + def check_version(self, ns, root): + """Validate validity of camt file.""" + # Check whether it is camt at all: + re_camt = re.compile( + r'(^urn:iso:std:iso:20022:tech:xsd:camt.' + r'|^ISO:camt.)' + ) + if not re_camt.search(ns): + raise ValueError('no camt: ' + ns) + # Check whether version 052 ,053 or 054: + re_camt_version = re.compile( + r'(^urn:iso:std:iso:20022:tech:xsd:camt.054.' + r'|^urn:iso:std:iso:20022:tech:xsd:camt.053.' + r'|^urn:iso:std:iso:20022:tech:xsd:camt.052.' + r'|^ISO:camt.054.' + r'|^ISO:camt.053.' + r'|^ISO:camt.052.)' + ) + if not re_camt_version.search(ns): + raise ValueError('no camt 052 or 053 or 054: ' + ns) + # Check GrpHdr element: + root_0_0 = root[0][0].tag[len(ns) + 2:] # strip namespace + if root_0_0 != 'GrpHdr': + raise ValueError('expected GrpHdr, got: ' + root_0_0) + + def parse(self, data): + """Parse a camt.052 or camt.053 or camt.054 file.""" + try: + root = etree.fromstring( + data, parser=etree.XMLParser(recover=True)) + except etree.XMLSyntaxError: + # ABNAmro is known to mix up encodings + root = etree.fromstring( + data.decode('iso-8859-15').encode('utf-8')) + if root is None: + raise ValueError( + 'Not a valid xml file, or not an xml file at all.') + ns = root.tag[1:root.tag.index("}")] + self.check_version(ns, root) + statements = [] + currency = None + account_number = None + for node in root[0][1:]: + statement = self.parse_statement(ns, node) + if len(statement['transactions']): + if 'currency' in statement: + currency = statement.pop('currency') + if 'account_number' in statement: + account_number = statement.pop('account_number') + statements.append(statement) + return currency, account_number, statements diff --git a/account_bank_statement_import_camt_oca/test_files/golden-camt053-txdtls.pydata b/account_bank_statement_import_camt_oca/test_files/golden-camt053-txdtls.pydata new file mode 100644 index 0000000..9b73d97 --- /dev/null +++ b/account_bank_statement_import_camt_oca/test_files/golden-camt053-txdtls.pydata @@ -0,0 +1,18 @@ +(None, + 'CH1111000000123456789', + [{'balance_end_real': 79443.15, + 'balance_start': 75960.15, + 'date': '2017-03-22', + 'name': '20170323123456789012345', + 'transactions': [{'account_number': 'CH2222000000123456789', + 'amount': 2187.0, + 'date': '2017-03-22', + 'name': 'CRÉDIT GROUPÉ BVR TRAITEMENT DU 22.03.2017 NUMÉRO CLIENT 01-70884-3 PAQUET ID: 123456CHCAFEBABE', + 'partner_name': 'Banque Cantonale Vaudoise', + 'ref': '302388292000011111111111111'}, + {'account_number': 'CH3333000000123456789', + 'amount': 1296.0, + 'date': '2017-03-22', + 'name': 'CRÉDIT GROUPÉ BVR TRAITEMENT DU 22.03.2017 NUMÉRO CLIENT 01-70884-3 PAQUET ID: 123456CHCAFEBABE', + 'partner_name': 'Banque Cantonale Vaudoise', + 'ref': '302388292000022222222222222'}]}]) diff --git a/account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata b/account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata new file mode 100644 index 0000000..ba7cb95 --- /dev/null +++ b/account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata @@ -0,0 +1,27 @@ +(None, + 'NL77ABNA0574908765', + [{'balance_end_real': 15121.12, + 'balance_start': 15568.27, + 'date': '2014-01-05', + 'name': '1234Test/1', + 'transactions': [{'account_number': 'NL46ABNA0499998748', + 'amount': -754.25, + 'date': '2014-01-05', + 'name': 'MKB Insurance 859239PERIOD 01.01.2014 - 31.12.2014', + 'note': 'Insurance policy 857239PERIOD 01.01.2014 - 31.12.2014', + 'partner_name': 'INSURANCE COMPANY TESTX', + 'ref': '435005714488-ABNO33052620'}, + {'account_number': 'NL46ABNA0499998748', + 'amount': -594.05, + 'date': '2014-01-05', + 'name': 'Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408', + 'note': 'Direct Debit S14 0410', + 'partner_name': 'Test Customer', + 'ref': 'TESTBANK/NL/20141229/01206408'}, + {'account_number': 'NL69ABNA0522123643', + 'amount': 1405.31, + 'date': '2014-01-05', + 'name': '#RD PARTY MEDIA CUSNO 90782 4210773', + 'note': 'INNDNL2U20140105000217200000708', + 'partner_name': '3rd party Media', + 'ref': '115'}]}]) diff --git a/account_bank_statement_import_camt_oca/test_files/test-camt053 b/account_bank_statement_import_camt_oca/test_files/test-camt053 new file mode 100644 index 0000000..4a2a047 --- /dev/null +++ b/account_bank_statement_import_camt_oca/test_files/test-camt053 @@ -0,0 +1,241 @@ + + + + TESTBANK/NL/1420561226673 + 2014-01-06T16:20:26.673Z + + + 1234Test/1 + 2 + 2014-01-06T16:20:26.673Z + + 2014-01-05T00:00:00.000Z + 2014-01-05T23:59:59.999Z + + + + NL77ABNA0574908765 + + Example company + + + ABNANL2A + + + + + + + OPBD + + + 15568.27 + CRDT +
+
2014-01-05
+ +
+ + + + CLBD + + + 15121.12 + CRDT +
+
2014-01-05
+ +
+ + 754.25 + DBIT + BOOK + +
2014-01-05
+
+ +
2014-01-05
+
+ + + PMNT + + RDDT + ESDD + + + + EI + + + + + + INNDNL2U20141231000142300002844 + 435005714488-ABNO33052620 + 1880000341866 + + + + 754.25 + + + + + INSURANCE COMPANY TESTX + + TEST STREET 20 + 1234 AB TESTCITY + NL + + + + + NL46ABNA0499998748 + + + + + + + ABNANL2A + + + + + Insurance policy 857239PERIOD 01.01.2014 - 31.12.2014 + + MKB Insurance 859239PERIOD 01.01.2014 - 31.12.2014 + + +
+ + 594.05 + DBIT + true + BOOK + +
2014-01-05
+
+ +
2014-01-05
+
+ + + PMNT + + IDDT + UPDD + + + + EIST + + + + + + TESTBANK/NL/20141229/01206408 + TESTBANK/NL/20141229/01206408 + NL22ZZZ524885430000-C0125.1 + + + + 564.05 + + + + + Test Customer + + NL + + + + + NL46ABNA0499998748 + + + + + + + ABNANL2A + + + + + Direct Debit S14 0410 + + + + AC06 + + + Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408 + + +
+ + 1405.31 + CRDT + BOOK + +
2014-01-05
+
+ +
2014-01-05
+
+ + + PMNT + + RCDT + ESCT + + + + ET + + + + + + INNDNL2U20140105000217200000708 + 115 + + + + 1405.31 + + + + + 3rd party Media + + SOMESTREET 570-A + 1276 ML HOUSCITY + NL + + + + + NL69ABNA0522123643 + + + + + + + ABNANL2A + + + + #RD PARTY MEDIA CUSNO 90782 4210773 + + +
+
+
+
diff --git a/account_bank_statement_import_camt_oca/test_files/test-camt053-txdtls b/account_bank_statement_import_camt_oca/test_files/test-camt053-txdtls new file mode 100644 index 0000000..cf7c38f --- /dev/null +++ b/account_bank_statement_import_camt_oca/test_files/test-camt053-txdtls @@ -0,0 +1,214 @@ + + + + + 20170323312345678900000 + 2017-03-23T14:47:00 + + 1 + true + + Test + + + 20170323123456789012345 + 58 + 2017-03-23T14:47:00 + + 2017-03-23T00:00:00 + 2017-03-23T23:59:59 + + + + CH1111000000123456789 + + + Open Net S. à r.l. Prilly + + + + + + OPBD + + + 75960.15 + CRDT +
+
2017-03-22
+ +
+ + + + CLBD + + + 79443.15 + CRDT +
+
2017-03-23
+ +
+ + 012345678 + 3483.00 + CRDT + false + BOOK + +
2017-03-22
+
+ +
2017-03-23
+
+ 20170323001234567891234567891234 + + + PMNT + + RCDT + VCOM + + + + + + 2 + + + + 123456CHCAFEBABE + + 01 + 123456CHCAFEBABE + + + 2187.00 + CRDT + + + PMNT + + RCDT + AUTT + + + + + + Banque Cantonale Vaudoise + + Place Saint-François + 14 + 1003 + Lausanne + CH1 + + + + + CH2222000000123456789 + + + + + + + POFICHBEXXX + POSTFINANCE AG + + MINGERSTRASSE 20 + 3030 BERNE + + + + + + + + + + ISR Reference + + + 302388292000011111111111111 + + ?REJECT?0 + + + + 2017-03-22T20:00:00 + + + + + 123456CHCAFEBABE + + 01 + 123456CHCAFEBABE + + + 1296.00 + CRDT + + + PMNT + + RCDT + AUTT + + + + + + Banque Cantonale Vaudoise + + Place Saint-François + 14 + 1003 + Lausanne + CH2 + + + + + CH3333000000123456789 + + + + + + + POFICHBEYYY + POSTFINANCE AG + + MINGERSTRASSE 20 + 3030 BERNE + + + + + + + + + + ISR Reference + + + 302388292000022222222222222 + + ?REJECT?0 + + + + 2017-03-22T20:00:00 + + + + CRÉDIT GROUPÉ BVR TRAITEMENT DU 22.03.2017 NUMÉRO CLIENT 01-70884-3 PAQUET ID: 123456CHCAFEBABE +
+
+
+
diff --git a/account_bank_statement_import_camt_oca/test_files/test-camt053.zip b/account_bank_statement_import_camt_oca/test_files/test-camt053.zip new file mode 100644 index 0000000000000000000000000000000000000000..ccf5b3c2ba72ad03cc137edcf2ee55f67b7a2952 GIT binary patch literal 3111 zcmeH}=T{S08pZ=5FccF7R764P14xk;5EP_{0RmY=5O4w{AVr!$C=oHlAWJhyReBE! zAqJ!U#$s;Q+O;qQmC7X$#CFp;S53XKp3 z@bIyK0Kng`kJ*<4=k&#UW|xqT(@Tov5YUyorl#QtnL>GL823Dkl9(M6fc0cI%(|Ni z6Q^GLcu71wsM2}%?CvjH!8b!s<&9$V%#|&29fp7$*Z6H3|gs9r@Iab`}w zn70^AGxt!43sw21&ugEeu5!s zB=aSvS|O$Bs(_1W`3N!7kW{?C+9uvd?a-AuvRv(>X!goeIdlV;b{mCeyP1vK$0=9p zhvGziT|Owbw0q_obsli0rv4Sr^-c(wMC`04QcZhDwWKHp@XFHQlHEbhsWMKSBZZOw zA}>C4#%A3WrP-sj`HDO4lA-;!yrBVX&3%#eOMKMU@+IV(nv7lhYS%{;$3{6@D@-?8 zj%$0W-f~sSJ^sQi^P9;MO$$IZFznJn;)6b5Ft;O?XIp3Wvr?Mxgx4Co_F1d*^z6>W z16A~WLf`!H5cIp~GA4ZCR{`G`WEw$zws*gec}$;&fZM zo5o5(B`9uG=!A2Ina*WDMms&g&>^6!qHt5;GqTVR1>*Ec+Z)I*wlOs-1v{7k(SD7cx&3TX>4UUU|z4aL*H}d*MEMlY`)`QpML{Lh>UZ>Y$ z#RRHb?tB{p^?Uws=MQd|l>2$Th%nhp47tF`Rx7B!RoxbGo{x9Ijt)~YQ+V444% zPzs&KG$xTJ)T2(Qz^8|QRB}mXgGS2uVz8>+^ZoN75^~j6MqhVW51<$wUzWDyF|J1 zirME@jT#|^OHAAz3aV0H+~Jxv^`tk-VY6f-Rl*g=@Y-F-Ba{e9gU80nOv-XmG14&C zV(E)5%on5Y=I7h_Gab0duA42{ST}8V<9on@o5adK;Lj4$TmL;iTZRlaNcE zF1&6LTv;hka~iWF8};~H>r~tMthOl-2An0f&eCUPY+h! z>c3ZOHlMoCRY`(}DnQqY19eBIViuA`HhKm_r5I4{dR+8rdB$SfS*>Oa_D7-8&b&W) z{U@*guX)YGD-Hakf-SLEya527J(Uu_PrqBYLI0@RzhO7R`d`NX9R>ex{Ae#A{?quM b!LVoiJE4HE2JwIY3-8{k*?V1uzi)p7q~E=A literal 0 HcmV?d00001 diff --git a/account_bank_statement_import_camt_oca/tests/__init__.py b/account_bank_statement_import_camt_oca/tests/__init__.py new file mode 100644 index 0000000..5198b77 --- /dev/null +++ b/account_bank_statement_import_camt_oca/tests/__init__.py @@ -0,0 +1,4 @@ +"""Test import of bank statement for camt.053.""" +# © 2013-2016 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from . import test_import_bank_statement diff --git a/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py b/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py new file mode 100644 index 0000000..d96b051 --- /dev/null +++ b/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py @@ -0,0 +1,127 @@ +"""Run test to import camt.053 import.""" +# © 2013-2016 Therp BV +# Copyright 2017 Open Net Sàrl +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +import base64 +import difflib +import pprint +import tempfile + + +from odoo.tests.common import TransactionCase +from odoo.modules.module import get_module_resource + + +class TestParser(TransactionCase): + """Tests for the camt parser itself.""" + def setUp(self): + super(TestParser, self).setUp() + self.parser = self.env['account.bank.statement.import.camt.parser'] + + def _do_parse_test(self, inputfile, goldenfile): + testfile = get_module_resource( + 'account_bank_statement_import_camt_oca', + 'test_files', + inputfile, + ) + with open(testfile, 'rb') as data: + res = self.parser.parse(data.read()) + with tempfile.NamedTemporaryFile(mode='w+', + suffix='.pydata') as temp: + pprint.pprint(res, temp, width=160) + goldenfile_res = get_module_resource( + 'account_bank_statement_import_camt_oca', + 'test_files', + goldenfile, + ) + with open(goldenfile_res, 'r') as golden: + temp.seek(0) + diff = list( + difflib.unified_diff(golden.readlines(), + temp.readlines(), + golden.name, + temp.name)) + if len(diff) > 2: + self.fail( + "actual output doesn't match expected " + + "output:\n%s" % + "".join(diff)) + + def test_parse(self): + self._do_parse_test( + 'test-camt053', + 'golden-camt053.pydata') + + def test_parse_txdtls(self): + self._do_parse_test( + 'test-camt053-txdtls', + 'golden-camt053-txdtls.pydata') + + +class TestImport(TransactionCase): + """Run test to import camt import.""" + transactions = [ + { + 'account_number': 'NL46ABNA0499998748', + 'amount': -754.25, + 'date': '2014-01-05', + 'ref': '435005714488-ABNO33052620', + }, + ] + + def setUp(self): + super(TestImport, self).setUp() + bank = self.env['res.partner.bank'].create({ + 'acc_number': 'NL77ABNA0574908765', + 'partner_id': self.env.ref('base.main_partner').id, + 'company_id': self.env.ref('base.main_company').id, + 'bank_id': self.env.ref('base.res_bank_1').id, + }) + self.env['account.journal'].create({ + 'name': 'Bank Journal - (test camt)', + 'code': 'TBNKCAMT', + 'type': 'bank', + 'bank_account_id': bank.id, + }) + + def test_statement_import(self): + """Test correct creation of single statement.""" + testfile = get_module_resource( + 'account_bank_statement_import_camt_oca', + 'test_files', + 'test-camt053', + ) + with open(testfile, 'rb') as datafile: + action = self.env['account.bank.statement.import'].create({ + 'data_file': base64.b64encode(datafile.read()) + }).import_file() + + for statement in self.env['account.bank.statement'].browse( + action['context']['statement_ids'] + ): + self.assertTrue(any( + all( + line[key] == self.transactions[0][key] + for key in ['amount', 'date', 'ref'] + ) and + line.bank_account_id.acc_number == + self.transactions[0]['account_number'] + for line in statement.line_ids + )) + + def test_zip_import(self): + """Test import of multiple statements from zip file.""" + testfile = get_module_resource( + 'account_bank_statement_import_camt_oca', + 'test_files', + 'test-camt053.zip', + ) + with open(testfile, 'rb') as datafile: + action = self.env['account.bank.statement.import'].create({ + 'data_file': base64.b64encode(datafile.read()), + }).import_file() + + for statement in self.env['account.bank.statement'].browse( + action['context']['statement_ids'] + ): + self.assertTrue(statement.line_ids) diff --git a/account_bank_statement_import_camt_oca/views/account_bank_statement_import.xml b/account_bank_statement_import_camt_oca/views/account_bank_statement_import.xml new file mode 100644 index 0000000..92d3c08 --- /dev/null +++ b/account_bank_statement_import_camt_oca/views/account_bank_statement_import.xml @@ -0,0 +1,13 @@ + + + + account.bank.statement.import + + +
    +
  • CAMT
  • +
  • zipped CAMT
  • +
+
+
+
From bff7f545b4155fcee60727c7762207d11aff7629 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 9 Jun 2018 03:28:15 +0200 Subject: [PATCH 02/12] OCA Transbot updated translations from Transifex --- .../i18n/es.po | 21 ++++---- .../i18n/fa.po | 54 +++++++++++++++++++ .../i18n/fr.po | 21 ++++---- .../i18n/hr.po | 20 +++---- 4 files changed, 84 insertions(+), 32 deletions(-) create mode 100644 account_bank_statement_import_camt_oca/i18n/fa.po diff --git a/account_bank_statement_import_camt_oca/i18n/es.po b/account_bank_statement_import_camt_oca/i18n/es.po index e56d7f8..ad8d6df 100644 --- a/account_bank_statement_import_camt_oca/i18n/es.po +++ b/account_bank_statement_import_camt_oca/i18n/es.po @@ -1,17 +1,16 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_camt_oca -# +# # Translators: -# OCA Transbot , 2017 -# enjolras , 2018 +# OCA Transbot , 2018 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" +"Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-02-21 01:41+0000\n" -"PO-Revision-Date: 2018-02-21 01:41+0000\n" -"Last-Translator: enjolras , 2018\n" +"POT-Creation-Date: 2018-06-08 08:27+0000\n" +"PO-Revision-Date: 2018-06-08 08:27+0000\n" +"Last-Translator: OCA Transbot , 2018\n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -25,12 +24,12 @@ msgid "CAMT" msgstr "CAMT" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name msgid "Display Name" msgstr "Nombre a mostrar" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id msgid "ID" msgstr "ID" @@ -40,12 +39,12 @@ msgid "Import Bank Statement" msgstr "Importar extracto bancario" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser___last_update +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update msgid "Last Modified on" msgstr "Última modificación en" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_oca_parser +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser msgid "account.bank.statement.import.camt.parser" msgstr "account.bank.statement.import.camt.parser" diff --git a/account_bank_statement_import_camt_oca/i18n/fa.po b/account_bank_statement_import_camt_oca/i18n/fa.po new file mode 100644 index 0000000..62b8c8d --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/fa.po @@ -0,0 +1,54 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +# Translators: +# Mehdi Zarrinkolah , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-06-08 08:27+0000\n" +"PO-Revision-Date: 2018-06-08 08:27+0000\n" +"Last-Translator: Mehdi Zarrinkolah , 2018\n" +"Language-Team: Persian (https://www.transifex.com/oca/teams/23907/fa/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fa\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "CAMT" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "نام صفحه نمایش" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "شناسه" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "ورود بیانیه بانکی " + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "آخرین تغییر در" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "گزارش .حساب بانکی .وارد کننده .تقسیم کننده .تجزیه کننده" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "CAMT زیپ شده " diff --git a/account_bank_statement_import_camt_oca/i18n/fr.po b/account_bank_statement_import_camt_oca/i18n/fr.po index 11f802f..c48c296 100644 --- a/account_bank_statement_import_camt_oca/i18n/fr.po +++ b/account_bank_statement_import_camt_oca/i18n/fr.po @@ -1,17 +1,16 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_camt_oca -# +# # Translators: -# Quentin THEURET , 2017 -# OCA Transbot , 2017 +# OCA Transbot , 2018 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" +"Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-11-21 01:42+0000\n" -"PO-Revision-Date: 2017-11-21 01:42+0000\n" -"Last-Translator: OCA Transbot , 2017\n" +"POT-Creation-Date: 2018-06-08 08:27+0000\n" +"PO-Revision-Date: 2018-06-08 08:27+0000\n" +"Last-Translator: OCA Transbot , 2018\n" "Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -25,12 +24,12 @@ msgid "CAMT" msgstr "CAMT" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name msgid "Display Name" msgstr "Nom affiché" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id msgid "ID" msgstr "ID" @@ -40,12 +39,12 @@ msgid "Import Bank Statement" msgstr "Importer Relevé Bancaire" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser___last_update +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update msgid "Last Modified on" msgstr "Dernière modification le" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_oca_parser +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser msgid "account.bank.statement.import.camt.parser" msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/hr.po b/account_bank_statement_import_camt_oca/i18n/hr.po index b8d38f5..3d3188e 100644 --- a/account_bank_statement_import_camt_oca/i18n/hr.po +++ b/account_bank_statement_import_camt_oca/i18n/hr.po @@ -1,16 +1,16 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_camt_oca -# +# # Translators: -# Bole , 2018 +# OCA Transbot , 2018 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" +"Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-02-21 01:41+0000\n" -"PO-Revision-Date: 2018-02-21 01:41+0000\n" -"Last-Translator: Bole , 2018\n" +"POT-Creation-Date: 2018-06-08 08:27+0000\n" +"PO-Revision-Date: 2018-06-08 08:27+0000\n" +"Last-Translator: OCA Transbot , 2018\n" "Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -24,12 +24,12 @@ msgid "CAMT" msgstr "CAMT" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name msgid "Display Name" msgstr "Naziv" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id msgid "ID" msgstr "ID" @@ -39,12 +39,12 @@ msgid "Import Bank Statement" msgstr "Uvoz bankovnog izvoda" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_oca_parser___last_update +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update msgid "Last Modified on" msgstr "Zadnje modificirano" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_oca_parser +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser msgid "account.bank.statement.import.camt.parser" msgstr "account.bank.statement.import.camt.parser" From c7263e9b9572956e65c92cb725d0385a27b07ab4 Mon Sep 17 00:00:00 2001 From: oleksandrpaziuk <31699656+oleksandrpaziuk@users.noreply.github.com> Date: Thu, 12 Jul 2018 17:05:52 +0300 Subject: [PATCH 03/12] [11.0][FIX] Fix CAMT import without NTRY (#163) --- .../__manifest__.py | 2 +- .../models/parser.py | 10 ++-- .../test_files/golden-camt053-no-ntry.pydata | 1 + .../test_files/test-camt053-no-ntry | 52 +++++++++++++++++++ .../tests/test_import_bank_statement.py | 5 ++ 5 files changed, 65 insertions(+), 5 deletions(-) create mode 100644 account_bank_statement_import_camt_oca/test_files/golden-camt053-no-ntry.pydata create mode 100644 account_bank_statement_import_camt_oca/test_files/test-camt053-no-ntry diff --git a/account_bank_statement_import_camt_oca/__manifest__.py b/account_bank_statement_import_camt_oca/__manifest__.py index f2ca11a..64b4978 100644 --- a/account_bank_statement_import_camt_oca/__manifest__.py +++ b/account_bank_statement_import_camt_oca/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'CAMT Format Bank Statements Import', - 'version': '11.0.1.0.0', + 'version': '11.0.1.0.1', 'license': 'AGPL-3', 'author': 'Odoo Community Association (OCA), Therp BV', 'website': 'https://github.com/OCA/bank-statement-import', diff --git a/account_bank_statement_import_camt_oca/models/parser.py b/account_bank_statement_import_camt_oca/models/parser.py index 0668422..1176c79 100644 --- a/account_bank_statement_import_camt_oca/models/parser.py +++ b/account_bank_statement_import_camt_oca/models/parser.py @@ -181,10 +181,12 @@ class CamtParser(models.AbstractModel): for entry_node in entry_nodes: transactions.extend(self.parse_entry(ns, entry_node)) result['transactions'] = transactions - result['date'] = sorted(transactions, - key=lambda x: x['date'], - reverse=True - )[0]['date'] + result['date'] = None + if transactions: + result['date'] = sorted(transactions, + key=lambda x: x['date'], + reverse=True + )[0]['date'] return result def check_version(self, ns, root): diff --git a/account_bank_statement_import_camt_oca/test_files/golden-camt053-no-ntry.pydata b/account_bank_statement_import_camt_oca/test_files/golden-camt053-no-ntry.pydata new file mode 100644 index 0000000..ca89faa --- /dev/null +++ b/account_bank_statement_import_camt_oca/test_files/golden-camt053-no-ntry.pydata @@ -0,0 +1 @@ +(None, None, []) diff --git a/account_bank_statement_import_camt_oca/test_files/test-camt053-no-ntry b/account_bank_statement_import_camt_oca/test_files/test-camt053-no-ntry new file mode 100644 index 0000000..03f8f62 --- /dev/null +++ b/account_bank_statement_import_camt_oca/test_files/test-camt053-no-ntry @@ -0,0 +1,52 @@ + + + + TESTBANK/NL/1420561226673 + 2014-01-06T16:20:26.673Z + + + 1234Test/1 + 2 + 2014-01-06T16:20:26.673Z + + 2014-01-05T00:00:00.000Z + 2014-01-05T23:59:59.999Z + + + + NL77ABNA0574908765 + + Example company + + + ABNANL2A + + + + + + + OPBD + + + 1520.76 + CRDT +
+
2014-01-05
+ +
+ + + + CLBD + + + 1520.76 + CRDT +
+
2014-01-05
+ +
+
+
+
diff --git a/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py b/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py index d96b051..5235f35 100644 --- a/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py +++ b/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py @@ -57,6 +57,11 @@ class TestParser(TransactionCase): 'test-camt053-txdtls', 'golden-camt053-txdtls.pydata') + def test_parse_no_ntry(self): + self._do_parse_test( + 'test-camt053-no-ntry', + 'golden-camt053-no-ntry.pydata') + class TestImport(TransactionCase): """Run test to import camt import.""" From b1fe26263f87015c1da651f7c63e63102442c233 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Thu, 12 Jul 2018 15:17:46 +0000 Subject: [PATCH 04/12] [UPD] Update account_bank_statement_import_camt_oca.pot --- ...account_bank_statement_import_camt_oca.pot | 50 +++++++++++++++++++ .../i18n/de.po | 35 ++++++++++++- .../i18n/es.po | 4 +- .../i18n/fa.po | 4 +- .../i18n/fi.po | 22 +++++++- .../i18n/fr.po | 4 +- .../i18n/fr_CH.po | 25 +++++++++- .../i18n/gl.po | 22 +++++++- .../i18n/hr.po | 7 +-- .../i18n/lt_LT.po | 38 ++++++++++++-- .../i18n/nb_NO.po | 25 +++++++++- .../i18n/nl.po | 35 ++++++++++++- .../i18n/pt_BR.po | 35 ++++++++++++- .../i18n/pt_PT.po | 35 ++++++++++++- .../i18n/sl.po | 38 ++++++++++++-- 15 files changed, 350 insertions(+), 29 deletions(-) create mode 100644 account_bank_statement_import_camt_oca/i18n/account_bank_statement_import_camt_oca.pot diff --git a/account_bank_statement_import_camt_oca/i18n/account_bank_statement_import_camt_oca.pot b/account_bank_statement_import_camt_oca/i18n/account_bank_statement_import_camt_oca.pot new file mode 100644 index 0000000..4ebd9be --- /dev/null +++ b/account_bank_statement_import_camt_oca/i18n/account_bank_statement_import_camt_oca.pot @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_camt_oca +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.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_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "" + diff --git a/account_bank_statement_import_camt_oca/i18n/de.po b/account_bank_statement_import_camt_oca/i18n/de.po index f4d4e71..3219413 100644 --- a/account_bank_statement_import_camt_oca/i18n/de.po +++ b/account_bank_statement_import_camt_oca/i18n/de.po @@ -10,15 +10,46 @@ msgstr "" "POT-Creation-Date: 2015-07-24 21:51+0000\n" "PO-Revision-Date: 2015-10-04 11:43+0200\n" "Last-Translator: Rudolf Schnapka \n" -"Language-Team: French (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/fr/)\n" +"Language-Team: French (http://www.transifex.com/oca/OCA-bank-statement-" +"import-8-0/language/fr/)\n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Poedit 1.8.3\n" +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import msgid "Import Bank Statement" msgstr "Kontoauszug importieren" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/es.po b/account_bank_statement_import_camt_oca/i18n/es.po index ad8d6df..e7769d5 100644 --- a/account_bank_statement_import_camt_oca/i18n/es.po +++ b/account_bank_statement_import_camt_oca/i18n/es.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_camt_oca -# +# # Translators: # OCA Transbot , 2018 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2018-06-08 08:27+0000\n" "Last-Translator: OCA Transbot , 2018\n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_camt_oca diff --git a/account_bank_statement_import_camt_oca/i18n/fa.po b/account_bank_statement_import_camt_oca/i18n/fa.po index 62b8c8d..0254c16 100644 --- a/account_bank_statement_import_camt_oca/i18n/fa.po +++ b/account_bank_statement_import_camt_oca/i18n/fa.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_camt_oca -# +# # Translators: # Mehdi Zarrinkolah , 2018 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2018-06-08 08:27+0000\n" "Last-Translator: Mehdi Zarrinkolah , 2018\n" "Language-Team: Persian (https://www.transifex.com/oca/teams/23907/fa/)\n" +"Language: fa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fa\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_bank_statement_import_camt_oca diff --git a/account_bank_statement_import_camt_oca/i18n/fi.po b/account_bank_statement_import_camt_oca/i18n/fi.po index f91f6c9..3fa9e5a 100644 --- a/account_bank_statement_import_camt_oca/i18n/fi.po +++ b/account_bank_statement_import_camt_oca/i18n/fi.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2016-12-10 05:00+0000\n" "Last-Translator: Jarmo Kortetjärvi , 2017\n" "Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_camt_oca @@ -23,11 +23,31 @@ msgstr "" msgid "CAMT" msgstr "" +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import msgid "Import Bank Statement" msgstr "Tuo pankkiaineisto" +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" diff --git a/account_bank_statement_import_camt_oca/i18n/fr.po b/account_bank_statement_import_camt_oca/i18n/fr.po index c48c296..238423b 100644 --- a/account_bank_statement_import_camt_oca/i18n/fr.po +++ b/account_bank_statement_import_camt_oca/i18n/fr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_camt_oca -# +# # Translators: # OCA Transbot , 2018 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2018-06-08 08:27+0000\n" "Last-Translator: OCA Transbot , 2018\n" "Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_bank_statement_import_camt_oca diff --git a/account_bank_statement_import_camt_oca/i18n/fr_CH.po b/account_bank_statement_import_camt_oca/i18n/fr_CH.po index 4a5d587..78d329e 100644 --- a/account_bank_statement_import_camt_oca/i18n/fr_CH.po +++ b/account_bank_statement_import_camt_oca/i18n/fr_CH.po @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2016-12-09 17:00+0000\n" "PO-Revision-Date: 2016-12-09 17:00+0000\n" "Last-Translator: OCA Transbot , 2016\n" -"Language-Team: French (Switzerland) (https://www.transifex.com/oca/teams/23907/fr_CH/)\n" +"Language-Team: French (Switzerland) (https://www.transifex.com/oca/" +"teams/23907/fr_CH/)\n" +"Language: fr_CH\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fr_CH\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_bank_statement_import_camt_oca @@ -23,11 +24,31 @@ msgstr "" msgid "CAMT" msgstr "" +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import msgid "Import Bank Statement" msgstr "Importer Relevé" +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" diff --git a/account_bank_statement_import_camt_oca/i18n/gl.po b/account_bank_statement_import_camt_oca/i18n/gl.po index b8d5ab4..b578b15 100644 --- a/account_bank_statement_import_camt_oca/i18n/gl.po +++ b/account_bank_statement_import_camt_oca/i18n/gl.po @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2016-12-09 17:00+0000\n" "Last-Translator: Alejandro Santana , 2016\n" "Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: gl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_camt_oca @@ -23,11 +23,31 @@ msgstr "" msgid "CAMT" msgstr "" +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import msgid "Import Bank Statement" msgstr "Importar extracto bancario" +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" diff --git a/account_bank_statement_import_camt_oca/i18n/hr.po b/account_bank_statement_import_camt_oca/i18n/hr.po index 3d3188e..f102152 100644 --- a/account_bank_statement_import_camt_oca/i18n/hr.po +++ b/account_bank_statement_import_camt_oca/i18n/hr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * account_bank_statement_import_camt_oca -# +# # Translators: # OCA Transbot , 2018 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2018-06-08 08:27+0000\n" "Last-Translator: OCA Transbot , 2018\n" "Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: hr\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: account_bank_statement_import_camt_oca #: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view diff --git a/account_bank_statement_import_camt_oca/i18n/lt_LT.po b/account_bank_statement_import_camt_oca/i18n/lt_LT.po index 0820966..3b7d91b 100644 --- a/account_bank_statement_import_camt_oca/i18n/lt_LT.po +++ b/account_bank_statement_import_camt_oca/i18n/lt_LT.po @@ -10,14 +10,46 @@ msgstr "" "POT-Creation-Date: 2015-07-24 21:51+0000\n" "PO-Revision-Date: 2015-07-24 07:41+0000\n" "Last-Translator: <>\n" -"Language-Team: Lithuanian (Lithuania) (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/lt_LT/)\n" +"Language-Team: Lithuanian (Lithuania) (http://www.transifex.com/oca/OCA-bank-" +"statement-import-8-0/language/lt_LT/)\n" +"Language: lt_LT\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: lt_LT\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" +"%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "" #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import msgid "Import Bank Statement" msgstr "Importuoti banko išrašą" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/nb_NO.po b/account_bank_statement_import_camt_oca/i18n/nb_NO.po index ad504a0..5b20084 100644 --- a/account_bank_statement_import_camt_oca/i18n/nb_NO.po +++ b/account_bank_statement_import_camt_oca/i18n/nb_NO.po @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2016-12-09 17:00+0000\n" "PO-Revision-Date: 2016-12-09 17:00+0000\n" "Last-Translator: Imre Kristoffer Eilertsen , 2016\n" -"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/teams/23907/nb_NO/)\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" -"Language: nb_NO\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_camt_oca @@ -23,11 +24,31 @@ msgstr "" msgid "CAMT" msgstr "" +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import msgid "Import Bank Statement" msgstr "Importer bankutsagn" +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" diff --git a/account_bank_statement_import_camt_oca/i18n/nl.po b/account_bank_statement_import_camt_oca/i18n/nl.po index fa6dec9..f4e1ec1 100644 --- a/account_bank_statement_import_camt_oca/i18n/nl.po +++ b/account_bank_statement_import_camt_oca/i18n/nl.po @@ -11,14 +11,45 @@ msgstr "" "POT-Creation-Date: 2015-07-24 21:51+0000\n" "PO-Revision-Date: 2015-07-31 06:44+0000\n" "Last-Translator: Erwin van der Ploeg \n" -"Language-Team: Dutch (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/nl/)\n" +"Language-Team: Dutch (http://www.transifex.com/oca/OCA-bank-statement-" +"import-8-0/language/nl/)\n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: nl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import msgid "Import Bank Statement" msgstr "Importeer bankafschrift" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/pt_BR.po b/account_bank_statement_import_camt_oca/i18n/pt_BR.po index c27fa00..e810003 100644 --- a/account_bank_statement_import_camt_oca/i18n/pt_BR.po +++ b/account_bank_statement_import_camt_oca/i18n/pt_BR.po @@ -10,14 +10,45 @@ msgstr "" "POT-Creation-Date: 2015-10-09 09:23+0000\n" "PO-Revision-Date: 2015-10-09 00:26+0000\n" "Last-Translator: danimaribeiro \n" -"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-" +"statement-import-8-0/language/pt_BR/)\n" +"Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import msgid "Import Bank Statement" msgstr "Importar Extrato Bancário" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/pt_PT.po b/account_bank_statement_import_camt_oca/i18n/pt_PT.po index 62f2b77..3dcb580 100644 --- a/account_bank_statement_import_camt_oca/i18n/pt_PT.po +++ b/account_bank_statement_import_camt_oca/i18n/pt_PT.po @@ -10,14 +10,45 @@ msgstr "" "POT-Creation-Date: 2016-08-18 10:27+0000\n" "PO-Revision-Date: 2015-07-24 07:41+0000\n" "Last-Translator: <>\n" -"Language-Team: Portuguese (Portugal) (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/pt_PT/)\n" +"Language-Team: Portuguese (Portugal) (http://www.transifex.com/oca/OCA-bank-" +"statement-import-8-0/language/pt_PT/)\n" +"Language: pt_PT\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: pt_PT\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "" + #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import msgid "Import Bank Statement" msgstr "Importar Extrato Bancário" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/sl.po b/account_bank_statement_import_camt_oca/i18n/sl.po index fe1211d..5358432 100644 --- a/account_bank_statement_import_camt_oca/i18n/sl.po +++ b/account_bank_statement_import_camt_oca/i18n/sl.po @@ -10,14 +10,46 @@ msgstr "" "POT-Creation-Date: 2015-07-24 21:51+0000\n" "PO-Revision-Date: 2015-07-25 12:19+0000\n" "Last-Translator: Matjaž Mozetič \n" -"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-statement-import-8-0/language/sl/)\n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-statement-" +"import-8-0/language/sl/)\n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "CAMT" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +msgid "ID" +msgstr "" #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import msgid "Import Bank Statement" msgstr "Uvoz bančnega izpiska" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "account.bank.statement.import.camt.parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +msgid "zipped CAMT" +msgstr "" From daf664cf1a0ef4e02d8c495de557ec0337d1c7f4 Mon Sep 17 00:00:00 2001 From: derKonig Date: Sat, 21 Jul 2018 10:17:43 +0000 Subject: [PATCH 05/12] Translated using Weblate (Persian) Currently translated at 100.0% (7 of 7 strings) Translation: bank-statement-import-11.0/bank-statement-import-11.0-account_bank_statement_import_camt_oca Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-11-0/bank-statement-import-11-0-account_bank_statement_import_camt_oca/fa/ --- account_bank_statement_import_camt_oca/i18n/fa.po | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/account_bank_statement_import_camt_oca/i18n/fa.po b/account_bank_statement_import_camt_oca/i18n/fa.po index 0254c16..38afd38 100644 --- a/account_bank_statement_import_camt_oca/i18n/fa.po +++ b/account_bank_statement_import_camt_oca/i18n/fa.po @@ -9,14 +9,15 @@ msgstr "" "Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-08 08:27+0000\n" -"PO-Revision-Date: 2018-06-08 08:27+0000\n" -"Last-Translator: Mehdi Zarrinkolah , 2018\n" +"PO-Revision-Date: 2018-07-22 10:30+0000\n" +"Last-Translator: derKonig \n" "Language-Team: Persian (https://www.transifex.com/oca/teams/23907/fa/)\n" "Language: fa\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" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 3.0.1\n" #. module: account_bank_statement_import_camt_oca #: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view @@ -36,7 +37,7 @@ msgstr "شناسه" #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import msgid "Import Bank Statement" -msgstr "ورود بیانیه بانکی " +msgstr "ورود بیانیه بانکی" #. module: account_bank_statement_import_camt_oca #: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update @@ -51,4 +52,4 @@ msgstr "گزارش .حساب بانکی .وارد کننده .تقسیم کنن #. module: account_bank_statement_import_camt_oca #: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" -msgstr "CAMT زیپ شده " +msgstr "CAMT زیپ شده" From 0b1a9b4561338a63bed6cb268cda5a1bb41cd8aa Mon Sep 17 00:00:00 2001 From: Andrea Stirpe Date: Wed, 8 Aug 2018 08:14:07 +0200 Subject: [PATCH 06/12] [11.0][FIX] account_bank_statement_import_camt: payment amounts (#168) --- .../__manifest__.py | 2 +- .../models/parser.py | 6 +++ .../test_files/golden-camt053.pydata | 9 +++- .../test_files/test-camt053 | 50 ++++++++++++++++++- .../tests/test_import_bank_statement.py | 18 +++++++ 5 files changed, 82 insertions(+), 3 deletions(-) diff --git a/account_bank_statement_import_camt_oca/__manifest__.py b/account_bank_statement_import_camt_oca/__manifest__.py index 64b4978..573acf3 100644 --- a/account_bank_statement_import_camt_oca/__manifest__.py +++ b/account_bank_statement_import_camt_oca/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'CAMT Format Bank Statements Import', - 'version': '11.0.1.0.1', + 'version': '11.0.1.0.2', 'license': 'AGPL-3', 'author': 'Odoo Community Association (OCA), Therp BV', 'website': 'https://github.com/OCA/bank-statement-import', diff --git a/account_bank_statement_import_camt_oca/models/parser.py b/account_bank_statement_import_camt_oca/models/parser.py index 1176c79..aa9ef1e 100644 --- a/account_bank_statement_import_camt_oca/models/parser.py +++ b/account_bank_statement_import_camt_oca/models/parser.py @@ -19,9 +19,15 @@ class CamtParser(models.AbstractModel): sign = 1 amount = 0.0 sign_node = node.xpath('ns:CdtDbtInd', namespaces={'ns': ns}) + if not sign_node: + sign_node = node.xpath( + '../../ns:CdtDbtInd', namespaces={'ns': ns}) if sign_node and sign_node[0].text == 'DBIT': sign = -1 amount_node = node.xpath('ns:Amt', namespaces={'ns': ns}) + if not amount_node: + amount_node = node.xpath( + './ns:AmtDtls/ns:TxAmt/ns:Amt', namespaces={'ns': ns}) if amount_node: amount = sign * float(amount_node[0].text) return amount diff --git a/account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata b/account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata index ba7cb95..ee76845 100644 --- a/account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata +++ b/account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata @@ -12,12 +12,19 @@ 'partner_name': 'INSURANCE COMPANY TESTX', 'ref': '435005714488-ABNO33052620'}, {'account_number': 'NL46ABNA0499998748', - 'amount': -594.05, + 'amount': -564.05, 'date': '2014-01-05', 'name': 'Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408', 'note': 'Direct Debit S14 0410', 'partner_name': 'Test Customer', 'ref': 'TESTBANK/NL/20141229/01206408'}, + {'account_number': 'NL46ABNA0499998748', + 'amount': -100.0, + 'date': '2014-01-05', + 'name': 'Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408', + 'note': 'Direct Debit S14 0410', + 'partner_name': 'Test Customer', + 'ref': 'TESTBANK/NL/20141229/01206407'}, {'account_number': 'NL69ABNA0522123643', 'amount': 1405.31, 'date': '2014-01-05', diff --git a/account_bank_statement_import_camt_oca/test_files/test-camt053 b/account_bank_statement_import_camt_oca/test_files/test-camt053 index 4a2a047..1f15c84 100644 --- a/account_bank_statement_import_camt_oca/test_files/test-camt053 +++ b/account_bank_statement_import_camt_oca/test_files/test-camt053 @@ -111,7 +111,7 @@ - 594.05 + 664.05 DBIT true BOOK @@ -134,6 +134,13 @@ + + 2014/125 + 2018/125-20141229-NORM + 2 + 664.05 + DBIT + TESTBANK/NL/20141229/01206408 @@ -175,6 +182,47 @@ Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408 + + + TESTBANK/NL/20141229/01206407 + TESTBANK/NL/20141229/01206407 + NL22ZZZ524885430000-C0125.2 + + + + 100.00 + + + + + Test Customer + + NL + + + + + NL46ABNA0499998748 + + + + + + + ABNANL2A + + + + + Direct Debit S14 0410 + + + + AC06 + + + Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408 + diff --git a/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py b/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py index 5235f35..95ef967 100644 --- a/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py +++ b/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py @@ -72,6 +72,24 @@ class TestImport(TransactionCase): 'date': '2014-01-05', 'ref': '435005714488-ABNO33052620', }, + { + 'remote_account': 'NL46ABNA0499998748', + 'transferred_amount': -564.05, + 'value_date': '2014-01-05', + 'ref': 'TESTBANK/NL/20141229/01206408', + }, + { + 'remote_account': 'NL46ABNA0499998748', + 'transferred_amount': -100.0, + 'value_date': '2014-01-05', + 'ref': 'TESTBANK/NL/20141229/01206407', + }, + { + 'remote_account': 'NL69ABNA0522123643', + 'transferred_amount': 1405.31, + 'value_date': '2014-01-05', + 'ref': '115', + }, ] def setUp(self): From 23cd9b98541963f864640c15b581164d25a3e49b Mon Sep 17 00:00:00 2001 From: Andrea Date: Tue, 2 Oct 2018 11:15:50 +0200 Subject: [PATCH 07/12] [11.0][FIX] account_bank_statement_import_camt: switch name and note --- account_bank_statement_import_camt_oca/__manifest__.py | 2 +- account_bank_statement_import_camt_oca/models/parser.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/account_bank_statement_import_camt_oca/__manifest__.py b/account_bank_statement_import_camt_oca/__manifest__.py index 573acf3..9370b25 100644 --- a/account_bank_statement_import_camt_oca/__manifest__.py +++ b/account_bank_statement_import_camt_oca/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'CAMT Format Bank Statements Import', - 'version': '11.0.1.0.2', + 'version': '11.0.1.0.3', 'license': 'AGPL-3', 'author': 'Odoo Community Association (OCA), Therp BV', 'website': 'https://github.com/OCA/bank-statement-import', diff --git a/account_bank_statement_import_camt_oca/models/parser.py b/account_bank_statement_import_camt_oca/models/parser.py index aa9ef1e..eb329d7 100644 --- a/account_bank_statement_import_camt_oca/models/parser.py +++ b/account_bank_statement_import_camt_oca/models/parser.py @@ -59,12 +59,12 @@ class CamtParser(models.AbstractModel): './ns:RmtInf/ns:Ustrd', './ns:AddtlNtryInf', './ns:Refs/ns:InstrId', - ], transaction, 'note', join_str='\n') + ], transaction, 'name', join_str='\n') # name self.add_value_from_node( ns, node, [ './ns:AddtlTxInf', - ], transaction, 'name', join_str='\n') + ], transaction, 'note', join_str='\n') # eref self.add_value_from_node( ns, node, [ From c6947d29f950ea89c7378978bf0d0b4dc3017b58 Mon Sep 17 00:00:00 2001 From: Andrea Date: Tue, 2 Oct 2018 14:27:57 +0200 Subject: [PATCH 08/12] Adapt test --- .../test_files/golden-camt053.pydata | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata b/account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata index ee76845..4bcdee9 100644 --- a/account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata +++ b/account_bank_statement_import_camt_oca/test_files/golden-camt053.pydata @@ -7,28 +7,28 @@ 'transactions': [{'account_number': 'NL46ABNA0499998748', 'amount': -754.25, 'date': '2014-01-05', - 'name': 'MKB Insurance 859239PERIOD 01.01.2014 - 31.12.2014', - 'note': 'Insurance policy 857239PERIOD 01.01.2014 - 31.12.2014', + 'name': 'Insurance policy 857239PERIOD 01.01.2014 - 31.12.2014', + 'note': 'MKB Insurance 859239PERIOD 01.01.2014 - 31.12.2014', 'partner_name': 'INSURANCE COMPANY TESTX', 'ref': '435005714488-ABNO33052620'}, {'account_number': 'NL46ABNA0499998748', 'amount': -564.05, 'date': '2014-01-05', - 'name': 'Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408', - 'note': 'Direct Debit S14 0410', + 'name': 'Direct Debit S14 0410', + 'note': 'Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408', 'partner_name': 'Test Customer', 'ref': 'TESTBANK/NL/20141229/01206408'}, {'account_number': 'NL46ABNA0499998748', 'amount': -100.0, 'date': '2014-01-05', - 'name': 'Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408', - 'note': 'Direct Debit S14 0410', + 'name': 'Direct Debit S14 0410', + 'note': 'Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408', 'partner_name': 'Test Customer', 'ref': 'TESTBANK/NL/20141229/01206407'}, {'account_number': 'NL69ABNA0522123643', 'amount': 1405.31, 'date': '2014-01-05', - 'name': '#RD PARTY MEDIA CUSNO 90782 4210773', - 'note': 'INNDNL2U20140105000217200000708', + 'name': 'INNDNL2U20140105000217200000708', + 'note': '#RD PARTY MEDIA CUSNO 90782 4210773', 'partner_name': '3rd party Media', 'ref': '115'}]}]) From be9e8fc3f2e2dcc80d97c6329b7b96f57c45b0e9 Mon Sep 17 00:00:00 2001 From: Yung-Wa Date: Mon, 3 Dec 2018 10:40:43 +0000 Subject: [PATCH 09/12] Translated using Weblate (Dutch) Currently translated at 57.1% (4 of 7 strings) Translation: bank-statement-import-11.0/bank-statement-import-11.0-account_bank_statement_import_camt_oca Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-11-0/bank-statement-import-11-0-account_bank_statement_import_camt_oca/nl/ --- .../i18n/nl.po | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/account_bank_statement_import_camt_oca/i18n/nl.po b/account_bank_statement_import_camt_oca/i18n/nl.po index f4e1ec1..fdafb23 100644 --- a/account_bank_statement_import_camt_oca/i18n/nl.po +++ b/account_bank_statement_import_camt_oca/i18n/nl.po @@ -9,30 +9,33 @@ msgstr "" "Project-Id-Version: bank-statement-import (8.0)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-07-24 21:51+0000\n" -"PO-Revision-Date: 2015-07-31 06:44+0000\n" -"Last-Translator: Erwin van der Ploeg \n" -"Language-Team: Dutch (http://www.transifex.com/oca/OCA-bank-statement-" -"import-8-0/language/nl/)\n" +"PO-Revision-Date: 2018-12-03 10:43+0000\n" +"Last-Translator: Yung-Wa \n" +"Language-Team: Dutch (http://www.transifex.com/oca/" +"OCA-bank-statement-import-8-0/language/nl/)\n" "Language: nl\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" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.3\n" #. module: account_bank_statement_import_camt_oca #: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#, fuzzy msgid "CAMT" -msgstr "" +msgstr "CAMT" #. module: account_bank_statement_import_camt_oca #: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name msgid "Display Name" -msgstr "" +msgstr "Weergave naam" #. module: account_bank_statement_import_camt_oca #: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#, fuzzy msgid "ID" -msgstr "" +msgstr "ID" #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import @@ -42,14 +45,15 @@ msgstr "Importeer bankafschrift" #. module: account_bank_statement_import_camt_oca #: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update msgid "Last Modified on" -msgstr "" +msgstr "Laatst gewijzigd op" #. module: account_bank_statement_import_camt_oca #: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +#, fuzzy msgid "account.bank.statement.import.camt.parser" -msgstr "" +msgstr "account.bank.statement.import.camt.parser" #. module: account_bank_statement_import_camt_oca #: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" -msgstr "" +msgstr "zip formaat CAMT" From d6542b5de2d8712422a4086a252da186def81989 Mon Sep 17 00:00:00 2001 From: Andrea Date: Mon, 17 Dec 2018 10:55:42 +0100 Subject: [PATCH 10/12] [FIX] Add tag AddtlInf to the name field --- account_bank_statement_import_camt_oca/__manifest__.py | 2 +- account_bank_statement_import_camt_oca/models/parser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account_bank_statement_import_camt_oca/__manifest__.py b/account_bank_statement_import_camt_oca/__manifest__.py index 9370b25..d5e8ab0 100644 --- a/account_bank_statement_import_camt_oca/__manifest__.py +++ b/account_bank_statement_import_camt_oca/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'CAMT Format Bank Statements Import', - 'version': '11.0.1.0.3', + 'version': '11.0.1.0.4', 'license': 'AGPL-3', 'author': 'Odoo Community Association (OCA), Therp BV', 'website': 'https://github.com/OCA/bank-statement-import', diff --git a/account_bank_statement_import_camt_oca/models/parser.py b/account_bank_statement_import_camt_oca/models/parser.py index eb329d7..8bb871c 100644 --- a/account_bank_statement_import_camt_oca/models/parser.py +++ b/account_bank_statement_import_camt_oca/models/parser.py @@ -56,7 +56,7 @@ class CamtParser(models.AbstractModel): # message self.add_value_from_node( ns, node, [ - './ns:RmtInf/ns:Ustrd', + './ns:RmtInf/ns:Ustrd|./ns:RtrInf/ns:AddtlInf', './ns:AddtlNtryInf', './ns:Refs/ns:InstrId', ], transaction, 'name', join_str='\n') From 4e27fec2d335a2fb6016fbf6ba8be527570f3c10 Mon Sep 17 00:00:00 2001 From: Thomas Binsfeld Date: Mon, 28 Jan 2019 15:13:21 +0100 Subject: [PATCH 11/12] [MIG] Account Bank Statement Import CAMT OCA to 12.0 --- .../README.rst | 61 ++- .../__init__.py | 2 - .../__manifest__.py | 8 +- ...account_bank_statement_import_camt_oca.pot | 35 +- .../i18n/de.po | 33 +- .../i18n/es.po | 36 +- .../i18n/fa.po | 36 +- .../i18n/fi.po | 33 +- .../i18n/fr.po | 33 +- .../i18n/fr_CH.po | 33 +- .../i18n/gl.po | 33 +- .../i18n/hr.po | 36 +- .../i18n/lt_LT.po | 33 +- .../i18n/nb_NO.po | 33 +- .../i18n/nl.po | 41 +- .../i18n/pt_BR.po | 33 +- .../i18n/pt_PT.po | 33 +- .../i18n/sl.po | 33 +- .../models/__init__.py | 3 +- .../models/account_bank_statement_import.py | 6 +- .../models/account_journal.py | 14 + .../models/parser.py | 6 +- .../readme/CONTRIBUTORS.rst | 5 + .../readme/DESCRIPTION.rst | 1 + .../static/description/index.html | 423 ++++++++++++++++++ .../tests/__init__.py | 3 - .../tests/test_import_bank_statement.py | 45 +- .../account_bank_statement_import_camt_oca | 1 + .../setup.py | 6 + 29 files changed, 915 insertions(+), 183 deletions(-) create mode 100644 account_bank_statement_import_camt_oca/models/account_journal.py create mode 100644 account_bank_statement_import_camt_oca/readme/CONTRIBUTORS.rst create mode 100644 account_bank_statement_import_camt_oca/readme/DESCRIPTION.rst create mode 100644 account_bank_statement_import_camt_oca/static/description/index.html create mode 120000 setup/account_bank_statement_import_camt_oca/odoo/addons/account_bank_statement_import_camt_oca create mode 100644 setup/account_bank_statement_import_camt_oca/setup.py diff --git a/account_bank_statement_import_camt_oca/README.rst b/account_bank_statement_import_camt_oca/README.rst index 327bd47..4ac6a90 100644 --- a/account_bank_statement_import_camt_oca/README.rst +++ b/account_bank_statement_import_camt_oca/README.rst @@ -1,32 +1,57 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.png - :target: https://www.gnu.com/licenses/agpl +================================== +CAMT Format Bank Statements Import +================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fbank--statement--import-lightgray.png?logo=github + :target: https://github.com/OCA/bank-statement-import/tree/12.0/account_bank_statement_import_camt_oca + :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-12-0/bank-statement-import-12-0-account_bank_statement_import_camt_oca + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/174/12.0 + :alt: Try me on Runbot -========================= -Bank Statement Parse Camt -========================= +|badge1| |badge2| |badge3| |badge4| |badge5| Module to import SEPA CAMT.053 and CAMT.054 Format bank statement files. -Based on the Banking addons framework. - -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/174/11.0 +**Table of contents** +.. contents:: + :local: Bug Tracker =========== Bugs are tracked on `GitHub Issues `_. -In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing a detailed and welcomed feedback. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +~~~~~~~ + +* Therp BV + Contributors ------------- +~~~~~~~~~~~~ * Holger Brunn * Stefan Rijnhart @@ -34,19 +59,19 @@ Contributors * Andrea Stirpe * Maxence Groine -Do not contact contributors directly about support or help with technical issues. +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit http://odoo-community.org. +This module is part of the `OCA/bank-statement-import `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_bank_statement_import_camt_oca/__init__.py b/account_bank_statement_import_camt_oca/__init__.py index 867022b..0650744 100644 --- a/account_bank_statement_import_camt_oca/__init__.py +++ b/account_bank_statement_import_camt_oca/__init__.py @@ -1,3 +1 @@ -# © 2013-2016 Therp BV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/account_bank_statement_import_camt_oca/__manifest__.py b/account_bank_statement_import_camt_oca/__manifest__.py index d5e8ab0..6ae6089 100644 --- a/account_bank_statement_import_camt_oca/__manifest__.py +++ b/account_bank_statement_import_camt_oca/__manifest__.py @@ -1,10 +1,10 @@ -# © 2013-2017 Therp BV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2013-2017 Therp BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { 'name': 'CAMT Format Bank Statements Import', - 'version': '11.0.1.0.4', + 'version': '12.0.1.0.0', 'license': 'AGPL-3', - 'author': 'Odoo Community Association (OCA), Therp BV', + 'author': 'Therp BV, Odoo Community Association (OCA)', 'website': 'https://github.com/OCA/bank-statement-import', 'category': 'Banking addons', 'depends': [ diff --git a/account_bank_statement_import_camt_oca/i18n/account_bank_statement_import_camt_oca.pot b/account_bank_statement_import_camt_oca/i18n/account_bank_statement_import_camt_oca.pot index 4ebd9be..bf2d8b9 100644 --- a/account_bank_statement_import_camt_oca/i18n/account_bank_statement_import_camt_oca.pot +++ b/account_bank_statement_import_camt_oca/i18n/account_bank_statement_import_camt_oca.pot @@ -4,8 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" +"PO-Revision-Date: 2019-04-16 08:08+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -14,17 +16,22 @@ msgstr "" "Plural-Forms: \n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "Account Bank Statement Import CAMT parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "" @@ -34,17 +41,29 @@ msgid "Import Bank Statement" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/de.po b/account_bank_statement_import_camt_oca/i18n/de.po index 3219413..25b8463 100644 --- a/account_bank_statement_import_camt_oca/i18n/de.po +++ b/account_bank_statement_import_camt_oca/i18n/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: bank-statement-import (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-24 21:51+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2015-10-04 11:43+0200\n" "Last-Translator: Rudolf Schnapka \n" "Language-Team: French (http://www.transifex.com/oca/OCA-bank-statement-" @@ -20,17 +20,22 @@ msgstr "" "X-Generator: Poedit 1.8.3\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "Account Bank Statement Import CAMT parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "" @@ -40,16 +45,28 @@ msgid "Import Bank Statement" msgstr "Kontoauszug importieren" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/es.po b/account_bank_statement_import_camt_oca/i18n/es.po index e7769d5..731b3d9 100644 --- a/account_bank_statement_import_camt_oca/i18n/es.po +++ b/account_bank_statement_import_camt_oca/i18n/es.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-08 08:27+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2018-06-08 08:27+0000\n" "Last-Translator: OCA Transbot , 2018\n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" @@ -19,17 +19,23 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +#, fuzzy +msgid "Account Bank Statement Import CAMT parser" +msgstr "account.bank.statement.import.camt.parser" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "CAMT" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "Nombre a mostrar" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "ID" @@ -39,16 +45,28 @@ msgid "Import Bank Statement" msgstr "Importar extracto bancario" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "Última modificación en" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" -msgstr "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" +msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "CAMT en .zip" diff --git a/account_bank_statement_import_camt_oca/i18n/fa.po b/account_bank_statement_import_camt_oca/i18n/fa.po index 38afd38..28f89e7 100644 --- a/account_bank_statement_import_camt_oca/i18n/fa.po +++ b/account_bank_statement_import_camt_oca/i18n/fa.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-08 08:27+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2018-07-22 10:30+0000\n" "Last-Translator: derKonig \n" "Language-Team: Persian (https://www.transifex.com/oca/teams/23907/fa/)\n" @@ -20,17 +20,23 @@ msgstr "" "X-Generator: Weblate 3.0.1\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +#, fuzzy +msgid "Account Bank Statement Import CAMT parser" +msgstr "گزارش .حساب بانکی .وارد کننده .تقسیم کننده .تجزیه کننده" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "CAMT" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "نام صفحه نمایش" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "شناسه" @@ -40,16 +46,28 @@ msgid "Import Bank Statement" msgstr "ورود بیانیه بانکی" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "آخرین تغییر در" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" -msgstr "گزارش .حساب بانکی .وارد کننده .تقسیم کننده .تجزیه کننده" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" +msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "CAMT زیپ شده" diff --git a/account_bank_statement_import_camt_oca/i18n/fi.po b/account_bank_statement_import_camt_oca/i18n/fi.po index 3fa9e5a..8a2775e 100644 --- a/account_bank_statement_import_camt_oca/i18n/fi.po +++ b/account_bank_statement_import_camt_oca/i18n/fi.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-10 05:00+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2016-12-10 05:00+0000\n" "Last-Translator: Jarmo Kortetjärvi , 2017\n" "Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" @@ -19,17 +19,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "Account Bank Statement Import CAMT parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "" @@ -39,16 +44,28 @@ msgid "Import Bank Statement" msgstr "Tuo pankkiaineisto" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/fr.po b/account_bank_statement_import_camt_oca/i18n/fr.po index 238423b..3bbcf6e 100644 --- a/account_bank_statement_import_camt_oca/i18n/fr.po +++ b/account_bank_statement_import_camt_oca/i18n/fr.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-08 08:27+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2018-06-08 08:27+0000\n" "Last-Translator: OCA Transbot , 2018\n" "Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" @@ -19,17 +19,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "Account Bank Statement Import CAMT parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "CAMT" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "Nom affiché" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "ID" @@ -39,16 +44,28 @@ msgid "Import Bank Statement" msgstr "Importer Relevé Bancaire" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "Dernière modification le" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "CAMT zippé" diff --git a/account_bank_statement_import_camt_oca/i18n/fr_CH.po b/account_bank_statement_import_camt_oca/i18n/fr_CH.po index 78d329e..be18357 100644 --- a/account_bank_statement_import_camt_oca/i18n/fr_CH.po +++ b/account_bank_statement_import_camt_oca/i18n/fr_CH.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-09 17:00+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2016-12-09 17:00+0000\n" "Last-Translator: OCA Transbot , 2016\n" "Language-Team: French (Switzerland) (https://www.transifex.com/oca/" @@ -20,17 +20,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "Account Bank Statement Import CAMT parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "" @@ -40,16 +45,28 @@ msgid "Import Bank Statement" msgstr "Importer Relevé" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/gl.po b/account_bank_statement_import_camt_oca/i18n/gl.po index b578b15..460359a 100644 --- a/account_bank_statement_import_camt_oca/i18n/gl.po +++ b/account_bank_statement_import_camt_oca/i18n/gl.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-09 17:00+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2016-12-09 17:00+0000\n" "Last-Translator: Alejandro Santana , 2016\n" "Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" @@ -19,17 +19,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "Account Bank Statement Import CAMT parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "" @@ -39,16 +44,28 @@ msgid "Import Bank Statement" msgstr "Importar extracto bancario" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/hr.po b/account_bank_statement_import_camt_oca/i18n/hr.po index f102152..b3078a9 100644 --- a/account_bank_statement_import_camt_oca/i18n/hr.po +++ b/account_bank_statement_import_camt_oca/i18n/hr.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-08 08:27+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2018-06-08 08:27+0000\n" "Last-Translator: OCA Transbot , 2018\n" "Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" @@ -20,17 +20,23 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +#, fuzzy +msgid "Account Bank Statement Import CAMT parser" +msgstr "account.bank.statement.import.camt.parser" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "CAMT" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "Naziv" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "ID" @@ -40,16 +46,28 @@ msgid "Import Bank Statement" msgstr "Uvoz bankovnog izvoda" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "Zadnje modificirano" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" -msgstr "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" +msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "kompresirani CAMT" diff --git a/account_bank_statement_import_camt_oca/i18n/lt_LT.po b/account_bank_statement_import_camt_oca/i18n/lt_LT.po index 3b7d91b..54b4add 100644 --- a/account_bank_statement_import_camt_oca/i18n/lt_LT.po +++ b/account_bank_statement_import_camt_oca/i18n/lt_LT.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: bank-statement-import (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-24 21:51+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2015-07-24 07:41+0000\n" "Last-Translator: <>\n" "Language-Team: Lithuanian (Lithuania) (http://www.transifex.com/oca/OCA-bank-" @@ -20,17 +20,22 @@ msgstr "" "%100<10 || n%100>=20) ? 1 : 2);\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "Account Bank Statement Import CAMT parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "" @@ -40,16 +45,28 @@ msgid "Import Bank Statement" msgstr "Importuoti banko išrašą" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/nb_NO.po b/account_bank_statement_import_camt_oca/i18n/nb_NO.po index 5b20084..554d13e 100644 --- a/account_bank_statement_import_camt_oca/i18n/nb_NO.po +++ b/account_bank_statement_import_camt_oca/i18n/nb_NO.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-09 17:00+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2016-12-09 17:00+0000\n" "Last-Translator: Imre Kristoffer Eilertsen , 2016\n" "Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/" @@ -20,17 +20,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "Account Bank Statement Import CAMT parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "" @@ -40,16 +45,28 @@ msgid "Import Bank Statement" msgstr "Importer bankutsagn" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/nl.po b/account_bank_statement_import_camt_oca/i18n/nl.po index fdafb23..7e8927f 100644 --- a/account_bank_statement_import_camt_oca/i18n/nl.po +++ b/account_bank_statement_import_camt_oca/i18n/nl.po @@ -8,11 +8,11 @@ msgid "" msgstr "" "Project-Id-Version: bank-statement-import (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-24 21:51+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2018-12-03 10:43+0000\n" "Last-Translator: Yung-Wa \n" -"Language-Team: Dutch (http://www.transifex.com/oca/" -"OCA-bank-statement-import-8-0/language/nl/)\n" +"Language-Team: Dutch (http://www.transifex.com/oca/OCA-bank-statement-" +"import-8-0/language/nl/)\n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -21,18 +21,24 @@ msgstr "" "X-Generator: Weblate 3.3\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +#, fuzzy +msgid "Account Bank Statement Import CAMT parser" +msgstr "account.bank.statement.import.camt.parser" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view #, fuzzy msgid "CAMT" msgstr "CAMT" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "Weergave naam" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id #, fuzzy msgid "ID" msgstr "ID" @@ -43,17 +49,28 @@ msgid "Import Bank Statement" msgstr "Importeer bankafschrift" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "Laatst gewijzigd op" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -#, fuzzy -msgid "account.bank.statement.import.camt.parser" -msgstr "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" +msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "zip formaat CAMT" diff --git a/account_bank_statement_import_camt_oca/i18n/pt_BR.po b/account_bank_statement_import_camt_oca/i18n/pt_BR.po index e810003..be6a700 100644 --- a/account_bank_statement_import_camt_oca/i18n/pt_BR.po +++ b/account_bank_statement_import_camt_oca/i18n/pt_BR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: bank-statement-import (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-09 09:23+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2015-10-09 00:26+0000\n" "Last-Translator: danimaribeiro \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-" @@ -19,17 +19,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "Account Bank Statement Import CAMT parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "" @@ -39,16 +44,28 @@ msgid "Import Bank Statement" msgstr "Importar Extrato Bancário" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/pt_PT.po b/account_bank_statement_import_camt_oca/i18n/pt_PT.po index 3dcb580..096f26a 100644 --- a/account_bank_statement_import_camt_oca/i18n/pt_PT.po +++ b/account_bank_statement_import_camt_oca/i18n/pt_PT.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: bank-statement-import (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-08-18 10:27+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2015-07-24 07:41+0000\n" "Last-Translator: <>\n" "Language-Team: Portuguese (Portugal) (http://www.transifex.com/oca/OCA-bank-" @@ -19,17 +19,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "Account Bank Statement Import CAMT parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "" @@ -39,16 +44,28 @@ msgid "Import Bank Statement" msgstr "Importar Extrato Bancário" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "" diff --git a/account_bank_statement_import_camt_oca/i18n/sl.po b/account_bank_statement_import_camt_oca/i18n/sl.po index 5358432..65462d0 100644 --- a/account_bank_statement_import_camt_oca/i18n/sl.po +++ b/account_bank_statement_import_camt_oca/i18n/sl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: bank-statement-import (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-24 21:51+0000\n" +"POT-Creation-Date: 2019-04-16 08:08+0000\n" "PO-Revision-Date: 2015-07-25 12:19+0000\n" "Last-Translator: Matjaž Mozetič \n" "Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-statement-" @@ -20,17 +20,22 @@ msgstr "" "%100==4 ? 2 : 3);\n" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser +msgid "Account Bank Statement Import CAMT parser" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "CAMT" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__display_name msgid "Display Name" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser_id +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser__id msgid "ID" msgstr "" @@ -40,16 +45,28 @@ msgid "Import Bank Statement" msgstr "Uvoz bančnega izpiska" #. module: account_bank_statement_import_camt_oca -#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser___last_update +#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: model:ir.model.fields,field_description:account_bank_statement_import_camt_oca.field_account_bank_statement_import_camt_parser____last_update msgid "Last Modified on" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.model,name:account_bank_statement_import_camt_oca.model_account_bank_statement_import_camt_parser -msgid "account.bank.statement.import.camt.parser" +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.053.001.02" +msgstr "" + +#. module: account_bank_statement_import_camt_oca +#: code:addons/account_bank_statement_import_camt_oca/models/account_journal.py:13 +#, python-format +msgid "camt.054.001.02" msgstr "" #. module: account_bank_statement_import_camt_oca -#: model:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_camt_oca.account_bank_statement_import_view msgid "zipped CAMT" msgstr "" diff --git a/account_bank_statement_import_camt_oca/models/__init__.py b/account_bank_statement_import_camt_oca/models/__init__.py index 8b7d2c6..a1ecc88 100644 --- a/account_bank_statement_import_camt_oca/models/__init__.py +++ b/account_bank_statement_import_camt_oca/models/__init__.py @@ -1,4 +1,3 @@ -# © 2013-2016 Therp BV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import parser from . import account_bank_statement_import +from . import account_journal diff --git a/account_bank_statement_import_camt_oca/models/account_bank_statement_import.py b/account_bank_statement_import_camt_oca/models/account_bank_statement_import.py index f3ec1a5..75f68d3 100644 --- a/account_bank_statement_import_camt_oca/models/account_bank_statement_import.py +++ b/account_bank_statement_import_camt_oca/models/account_bank_statement_import.py @@ -1,6 +1,5 @@ -"""Add process_camt method to account.bank.statement.import.""" -# © 2013-2016 Therp BV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2013-2016 Therp BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import logging from io import BytesIO import zipfile @@ -10,7 +9,6 @@ _logger = logging.getLogger(__name__) class AccountBankStatementImport(models.TransientModel): - """Add process_camt method to account.bank.statement.import.""" _inherit = 'account.bank.statement.import' @api.model diff --git a/account_bank_statement_import_camt_oca/models/account_journal.py b/account_bank_statement_import_camt_oca/models/account_journal.py new file mode 100644 index 0000000..ccc523c --- /dev/null +++ b/account_bank_statement_import_camt_oca/models/account_journal.py @@ -0,0 +1,14 @@ +# Copyright 2019 ACSONE SA/NV +# License AGPL-3.0 or later (https://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(AccountJournal, self).\ + _get_bank_statements_available_import_formats() + res.extend([_('camt.053.001.02'), _('camt.054.001.02')]) + return res diff --git a/account_bank_statement_import_camt_oca/models/parser.py b/account_bank_statement_import_camt_oca/models/parser.py index 8bb871c..1e6fd9d 100644 --- a/account_bank_statement_import_camt_oca/models/parser.py +++ b/account_bank_statement_import_camt_oca/models/parser.py @@ -1,7 +1,7 @@ """Class to parse camt files.""" -# © 2013-2016 Therp BV +# Copyright 2013-2016 Therp BV # Copyright 2017 Open Net Sàrl -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import re from lxml import etree @@ -9,8 +9,8 @@ from odoo import models class CamtParser(models.AbstractModel): - """Parser for camt bank statement import files.""" _name = 'account.bank.statement.import.camt.parser' + _description = 'Account Bank Statement Import CAMT parser' def parse_amount(self, ns, node): """Parse element that contains Amount and CreditDebitIndicator.""" diff --git a/account_bank_statement_import_camt_oca/readme/CONTRIBUTORS.rst b/account_bank_statement_import_camt_oca/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..e10c70b --- /dev/null +++ b/account_bank_statement_import_camt_oca/readme/CONTRIBUTORS.rst @@ -0,0 +1,5 @@ +* Holger Brunn +* Stefan Rijnhart +* Ronald Portier +* Andrea Stirpe +* Maxence Groine diff --git a/account_bank_statement_import_camt_oca/readme/DESCRIPTION.rst b/account_bank_statement_import_camt_oca/readme/DESCRIPTION.rst new file mode 100644 index 0000000..c795774 --- /dev/null +++ b/account_bank_statement_import_camt_oca/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Module to import SEPA CAMT.053 and CAMT.054 Format bank statement files. diff --git a/account_bank_statement_import_camt_oca/static/description/index.html b/account_bank_statement_import_camt_oca/static/description/index.html new file mode 100644 index 0000000..76b8f32 --- /dev/null +++ b/account_bank_statement_import_camt_oca/static/description/index.html @@ -0,0 +1,423 @@ + + + + + + +CAMT Format Bank Statements Import + + + +
+

CAMT Format Bank Statements Import

+ + +

Beta License: AGPL-3 OCA/bank-statement-import Translate me on Weblate Try me on Runbot

+

Module to import SEPA CAMT.053 and CAMT.054 Format bank statement files.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Therp BV
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

This module is part of the OCA/bank-statement-import project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/account_bank_statement_import_camt_oca/tests/__init__.py b/account_bank_statement_import_camt_oca/tests/__init__.py index 5198b77..bb3456a 100644 --- a/account_bank_statement_import_camt_oca/tests/__init__.py +++ b/account_bank_statement_import_camt_oca/tests/__init__.py @@ -1,4 +1 @@ -"""Test import of bank statement for camt.053.""" -# © 2013-2016 Therp BV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import test_import_bank_statement diff --git a/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py b/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py index 95ef967..7340845 100644 --- a/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py +++ b/account_bank_statement_import_camt_oca/tests/test_import_bank_statement.py @@ -1,8 +1,8 @@ -"""Run test to import camt.053 import.""" -# © 2013-2016 Therp BV +# Copyright 2013-2016 Therp BV # Copyright 2017 Open Net Sàrl -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import base64 +from datetime import date import difflib import pprint import tempfile @@ -69,25 +69,25 @@ class TestImport(TransactionCase): { 'account_number': 'NL46ABNA0499998748', 'amount': -754.25, - 'date': '2014-01-05', + 'date': date(year=2014, month=1, day=5), 'ref': '435005714488-ABNO33052620', }, { 'remote_account': 'NL46ABNA0499998748', 'transferred_amount': -564.05, - 'value_date': '2014-01-05', + 'value_date': date(year=2014, month=1, day=5), 'ref': 'TESTBANK/NL/20141229/01206408', }, { 'remote_account': 'NL46ABNA0499998748', 'transferred_amount': -100.0, - 'value_date': '2014-01-05', + 'value_date': date(year=2014, month=1, day=5), 'ref': 'TESTBANK/NL/20141229/01206407', }, { 'remote_account': 'NL69ABNA0522123643', 'transferred_amount': 1405.31, - 'value_date': '2014-01-05', + 'value_date': date(year=2014, month=1, day=5), 'ref': '115', }, ] @@ -100,6 +100,12 @@ class TestImport(TransactionCase): 'company_id': self.env.ref('base.main_company').id, 'bank_id': self.env.ref('base.res_bank_1').id, }) + self.env['res.partner.bank'].create({ + 'acc_number': 'NL46ABNA0499998748', + 'partner_id': self.env.ref('base.main_partner').id, + 'company_id': self.env.ref('base.main_company').id, + 'bank_id': self.env.ref('base.res_bank_1').id, + }) self.env['account.journal'].create({ 'name': 'Bank Journal - (test camt)', 'code': 'TBNKCAMT', @@ -119,18 +125,18 @@ class TestImport(TransactionCase): 'data_file': base64.b64encode(datafile.read()) }).import_file() - for statement in self.env['account.bank.statement'].browse( + statement_lines = self.env['account.bank.statement'].browse( action['context']['statement_ids'] - ): - self.assertTrue(any( - all( - line[key] == self.transactions[0][key] - for key in ['amount', 'date', 'ref'] - ) and - line.bank_account_id.acc_number == - self.transactions[0]['account_number'] - for line in statement.line_ids - )) + ).line_ids + self.assertTrue(any( + all( + line[key] == self.transactions[0][key] + for key in ['amount', 'date', 'ref'] + ) and + line.bank_account_id.acc_number == + self.transactions[0]['account_number'] + for line in statement_lines + )) def test_zip_import(self): """Test import of multiple statements from zip file.""" @@ -145,6 +151,5 @@ class TestImport(TransactionCase): }).import_file() for statement in self.env['account.bank.statement'].browse( - action['context']['statement_ids'] - ): + action['context']['statement_ids']): self.assertTrue(statement.line_ids) diff --git a/setup/account_bank_statement_import_camt_oca/odoo/addons/account_bank_statement_import_camt_oca b/setup/account_bank_statement_import_camt_oca/odoo/addons/account_bank_statement_import_camt_oca new file mode 120000 index 0000000..ceba169 --- /dev/null +++ b/setup/account_bank_statement_import_camt_oca/odoo/addons/account_bank_statement_import_camt_oca @@ -0,0 +1 @@ +../../../../account_bank_statement_import_camt_oca \ No newline at end of file diff --git a/setup/account_bank_statement_import_camt_oca/setup.py b/setup/account_bank_statement_import_camt_oca/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/account_bank_statement_import_camt_oca/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From a80347b20646eb4b90487372502adf285a821af4 Mon Sep 17 00:00:00 2001 From: Thomas Binsfeld Date: Mon, 28 Jan 2019 15:13:45 +0100 Subject: [PATCH 12/12] [REF] Gitignore: .eggs --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 890ff01..7f2d438 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ var/ *.egg-info/ .installed.cfg *.egg +*.eggs # Installer logs pip-log.txt