diff --git a/account_statement_import_camt/README.rst b/account_statement_import_camt/README.rst index b2f9a88d..7317caee 100644 --- a/account_statement_import_camt/README.rst +++ b/account_statement_import_camt/README.rst @@ -14,13 +14,13 @@ CAMT Format Bank Statements Import :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/14.0/account_statement_import_camt + :target: https://github.com/OCA/bank-statement-import/tree/15.0/account_statement_import_camt :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-14-0/bank-statement-import-14-0-account_statement_import_camt + :target: https://translation.odoo-community.org/projects/bank-statement-import-15-0/bank-statement-import-15-0-account_statement_import_camt :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/14.0 + :target: https://runbot.odoo-community.org/runbot/174/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,7 +38,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -73,6 +73,6 @@ 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. +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_statement_import_camt/__manifest__.py b/account_statement_import_camt/__manifest__.py index d4d056df..8166c37b 100644 --- a/account_statement_import_camt/__manifest__.py +++ b/account_statement_import_camt/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "CAMT Format Bank Statements Import", - "version": "14.0.1.1.0", + "version": "15.0.1.0.0", "license": "AGPL-3", "author": "Therp BV, Odoo Community Association (OCA)", "website": "https://github.com/OCA/bank-statement-import", diff --git a/account_statement_import_camt/i18n/account_statement_import_camt.pot b/account_statement_import_camt/i18n/account_statement_import_camt.pot index fa665276..2c107f55 100644 --- a/account_statement_import_camt/i18n/account_statement_import_camt.pot +++ b/account_statement_import_camt/i18n/account_statement_import_camt.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -33,24 +33,6 @@ msgstr "" msgid "CAMT" msgstr "" -#. module: account_statement_import_camt -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_bank_statement__display_name -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_bank_statement_line__display_name -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_journal__display_name -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_statement_import__display_name -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_statement_import_camt_parser__display_name -msgid "Display Name" -msgstr "" - -#. module: account_statement_import_camt -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_bank_statement__id -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_bank_statement_line__id -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_journal__id -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_statement_import__id -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_statement_import_camt_parser__id -msgid "ID" -msgstr "" - #. module: account_statement_import_camt #: model:ir.model,name:account_statement_import_camt.model_account_statement_import msgid "Import Bank Statement Files" @@ -61,15 +43,6 @@ msgstr "" msgid "Journal" msgstr "" -#. module: account_statement_import_camt -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_bank_statement____last_update -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_bank_statement_line____last_update -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_journal____last_update -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_statement_import____last_update -#: model:ir.model.fields,field_description:account_statement_import_camt.field_account_statement_import_camt_parser____last_update -msgid "Last Modified on" -msgstr "" - #. module: account_statement_import_camt #: code:addons/account_statement_import_camt/models/account_journal.py:0 #, python-format diff --git a/account_statement_import_camt/i18n/it.po b/account_statement_import_camt/i18n/it.po index 167ec693..cb19c4ec 100644 --- a/account_statement_import_camt/i18n/it.po +++ b/account_statement_import_camt/i18n/it.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "PO-Revision-Date: 2021-11-25 17:36+0000\n" "Last-Translator: Sergio Zanchetta \n" diff --git a/account_statement_import_camt/models/account_statement_import.py b/account_statement_import_camt/models/account_statement_import.py index a213da96..bbb40208 100644 --- a/account_statement_import_camt/models/account_statement_import.py +++ b/account_statement_import_camt/models/account_statement_import.py @@ -30,6 +30,7 @@ class AccountBankStatementImport(models.TransientModel): ) transactions.extend(new) return currency, account_number, transactions + # pylint: disable=except-pass except (zipfile.BadZipFile, ValueError): pass # Not a camt file, returning super will call next candidate: diff --git a/account_statement_import_camt/static/description/index.html b/account_statement_import_camt/static/description/index.html index d3c233b7..3f5beede 100644 --- a/account_statement_import_camt/static/description/index.html +++ b/account_statement_import_camt/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

@@ -386,7 +386,7 @@ ul.auto-toc {

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.

+feedback.

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

@@ -415,7 +415,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

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.

+

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_statement_import_camt/tests/test_import_bank_statement.py b/account_statement_import_camt/tests/test_import_bank_statement.py index cda12fa9..135c3a68 100644 --- a/account_statement_import_camt/tests/test_import_bank_statement.py +++ b/account_statement_import_camt/tests/test_import_bank_statement.py @@ -15,9 +15,10 @@ from odoo.tests.common import TransactionCase class TestParser(TransactionCase): """Tests for the camt parser itself.""" - def setUp(self): - super(TestParser, self).setUp() - self.parser = self.env["account.statement.import.camt.parser"] + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.parser = cls.env["account.statement.import.camt.parser"] def _do_parse_test(self, inputfile, goldenfile): testfile = get_module_resource( @@ -83,31 +84,34 @@ class TestImport(TransactionCase): }, ] - def setUp(self): - super(TestImport, self).setUp() - bank = self.env["res.partner.bank"].create( + @classmethod + def setUpClass(cls): + super().setUpClass() + eur = cls.env.ref("base.EUR") + eur.write({"active": True}) + bank = cls.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, + "partner_id": cls.env.ref("base.main_partner").id, + "company_id": cls.env.ref("base.main_company").id, + "bank_id": cls.env.ref("base.res_bank_1").id, } ) - self.env["res.partner.bank"].create( + cls.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, + "partner_id": cls.env.ref("base.main_partner").id, + "company_id": cls.env.ref("base.main_company").id, + "bank_id": cls.env.ref("base.res_bank_1").id, } ) - self.env["account.journal"].create( + cls.env["account.journal"].create( { "name": "Bank Journal - (test camt)", "code": "TBNKCAMT", "type": "bank", "bank_account_id": bank.id, - "currency_id": self.env.ref("base.EUR").id, + "currency_id": eur.id, } )