From 0bc11c2e1a0d7e50f27f96f5bb4be9da08ded58f Mon Sep 17 00:00:00 2001 From: Iryna Vyshnevska Date: Sun, 6 Dec 2020 19:13:40 +0200 Subject: [PATCH] [14.0][MIG] account_statement_import_camt54 --- ...count_bank_statement_import_oca_camt54.pot | 45 ------------------ .../models/__init__.py | 2 - .../README.rst | 0 .../__init__.py | 0 .../__manifest__.py | 4 +- .../models/__init__.py | 2 + .../models/account_statement_import.py | 4 +- .../models/parser.py | 2 +- .../readme/CONTRIBUTORS.rst | 0 .../readme/DESCRIPTION.rst | 0 .../static/description/icon.png | Bin .../static/description/index.html | 0 .../tests/__init__.py | 0 .../tests/test_get_partner_ref.py | 2 +- .../addons/account_statement_import_camt54 | 1 + .../account_statement_import_camt54/setup.py | 6 +++ 16 files changed, 15 insertions(+), 53 deletions(-) delete mode 100644 account_bank_statement_import_oca_camt54/i18n/account_bank_statement_import_oca_camt54.pot delete mode 100644 account_bank_statement_import_oca_camt54/models/__init__.py rename {account_bank_statement_import_oca_camt54 => account_statement_import_camt54}/README.rst (100%) rename {account_bank_statement_import_oca_camt54 => account_statement_import_camt54}/__init__.py (100%) rename {account_bank_statement_import_oca_camt54 => account_statement_import_camt54}/__manifest__.py (79%) create mode 100644 account_statement_import_camt54/models/__init__.py rename account_bank_statement_import_oca_camt54/models/account_bank_statement_import.py => account_statement_import_camt54/models/account_statement_import.py (93%) rename {account_bank_statement_import_oca_camt54 => account_statement_import_camt54}/models/parser.py (98%) rename {account_bank_statement_import_oca_camt54 => account_statement_import_camt54}/readme/CONTRIBUTORS.rst (100%) rename {account_bank_statement_import_oca_camt54 => account_statement_import_camt54}/readme/DESCRIPTION.rst (100%) rename {account_bank_statement_import_oca_camt54 => account_statement_import_camt54}/static/description/icon.png (100%) rename {account_bank_statement_import_oca_camt54 => account_statement_import_camt54}/static/description/index.html (100%) rename {account_bank_statement_import_oca_camt54 => account_statement_import_camt54}/tests/__init__.py (100%) rename {account_bank_statement_import_oca_camt54 => account_statement_import_camt54}/tests/test_get_partner_ref.py (97%) create mode 120000 setup/account_statement_import_camt54/odoo/addons/account_statement_import_camt54 create mode 100644 setup/account_statement_import_camt54/setup.py diff --git a/account_bank_statement_import_oca_camt54/i18n/account_bank_statement_import_oca_camt54.pot b/account_bank_statement_import_oca_camt54/i18n/account_bank_statement_import_oca_camt54.pot deleted file mode 100644 index 564fb27c..00000000 --- a/account_bank_statement_import_oca_camt54/i18n/account_bank_statement_import_oca_camt54.pot +++ /dev/null @@ -1,45 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_bank_statement_import_oca_camt54 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 13.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_oca_camt54 -#: model:ir.model,name:account_bank_statement_import_oca_camt54.model_account_bank_statement_import_camt_parser -msgid "Account Bank Statement Import CAMT parser" -msgstr "" - -#. module: account_bank_statement_import_oca_camt54 -#: code:addons/account_bank_statement_import_oca_camt54/models/parser.py:0 -#, python-format -msgid "" -"Config parameter `isr_partner_ref` is wrong.\n" -"It must be in format `i[,n]` \n" -"`i` and `n` must be integers.\n" -"e.g. \"13,6\"" -msgstr "" - -#. module: account_bank_statement_import_oca_camt54 -#: code:addons/account_bank_statement_import_oca_camt54/models/parser.py:0 -#, python-format -msgid "" -"Config parameter `isr_partner_ref` is wrong.\n" -"It must be in format `i[,n]` \n" -"where `i` is the position of the first digit and\n" -"`n` the number of digit in the reference, by default 6.\n" -"e.g. \"13,6\"" -msgstr "" - -#. module: account_bank_statement_import_oca_camt54 -#: model:ir.model,name:account_bank_statement_import_oca_camt54.model_account_bank_statement_import -msgid "Import Bank Statement" -msgstr "" diff --git a/account_bank_statement_import_oca_camt54/models/__init__.py b/account_bank_statement_import_oca_camt54/models/__init__.py deleted file mode 100644 index 8364eda3..00000000 --- a/account_bank_statement_import_oca_camt54/models/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -from . import account_bank_statement_import -from . import parser diff --git a/account_bank_statement_import_oca_camt54/README.rst b/account_statement_import_camt54/README.rst similarity index 100% rename from account_bank_statement_import_oca_camt54/README.rst rename to account_statement_import_camt54/README.rst diff --git a/account_bank_statement_import_oca_camt54/__init__.py b/account_statement_import_camt54/__init__.py similarity index 100% rename from account_bank_statement_import_oca_camt54/__init__.py rename to account_statement_import_camt54/__init__.py diff --git a/account_bank_statement_import_oca_camt54/__manifest__.py b/account_statement_import_camt54/__manifest__.py similarity index 79% rename from account_bank_statement_import_oca_camt54/__manifest__.py rename to account_statement_import_camt54/__manifest__.py index bb03ac88..a9a8b6a2 100644 --- a/account_bank_statement_import_oca_camt54/__manifest__.py +++ b/account_statement_import_camt54/__manifest__.py @@ -2,11 +2,11 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Bank Account Camt54 Import", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "category": "Account", "website": "https://github.com/OCA/bank-statement-import", "author": "camptocamp, " "Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, - "depends": ["account_bank_statement_import_camt_oca"], + "depends": ["account_statement_import_camt"], } diff --git a/account_statement_import_camt54/models/__init__.py b/account_statement_import_camt54/models/__init__.py new file mode 100644 index 00000000..11ac1bbc --- /dev/null +++ b/account_statement_import_camt54/models/__init__.py @@ -0,0 +1,2 @@ +from . import account_statement_import +from . import parser diff --git a/account_bank_statement_import_oca_camt54/models/account_bank_statement_import.py b/account_statement_import_camt54/models/account_statement_import.py similarity index 93% rename from account_bank_statement_import_oca_camt54/models/account_bank_statement_import.py rename to account_statement_import_camt54/models/account_statement_import.py index 55015fc9..ae863028 100644 --- a/account_bank_statement_import_oca_camt54/models/account_bank_statement_import.py +++ b/account_statement_import_camt54/models/account_statement_import.py @@ -7,10 +7,10 @@ from odoo import models _logger = logging.getLogger(__name__) -class AccountBankStatementImport(models.TransientModel): +class AccountStatementImport(models.TransientModel): """Add process_camt method to account.bank.statement.import.""" - _inherit = "account.bank.statement.import" + _inherit = "account.statement.import" def _create_bank_statements(self, stmts_vals): """ Set balance_end_real if not already provided by the file.""" diff --git a/account_bank_statement_import_oca_camt54/models/parser.py b/account_statement_import_camt54/models/parser.py similarity index 98% rename from account_bank_statement_import_oca_camt54/models/parser.py rename to account_statement_import_camt54/models/parser.py index e218be9b..7c6d4190 100644 --- a/account_bank_statement_import_oca_camt54/models/parser.py +++ b/account_statement_import_camt54/models/parser.py @@ -7,7 +7,7 @@ from odoo import _, exceptions, models class CamtParser(models.AbstractModel): """Parser for camt bank statement import files.""" - _inherit = "account.bank.statement.import.camt.parser" + _inherit = "account.statement.import.camt.parser" def _get_partner_ref(self, isr): ICP = self.env["ir.config_parameter"] diff --git a/account_bank_statement_import_oca_camt54/readme/CONTRIBUTORS.rst b/account_statement_import_camt54/readme/CONTRIBUTORS.rst similarity index 100% rename from account_bank_statement_import_oca_camt54/readme/CONTRIBUTORS.rst rename to account_statement_import_camt54/readme/CONTRIBUTORS.rst diff --git a/account_bank_statement_import_oca_camt54/readme/DESCRIPTION.rst b/account_statement_import_camt54/readme/DESCRIPTION.rst similarity index 100% rename from account_bank_statement_import_oca_camt54/readme/DESCRIPTION.rst rename to account_statement_import_camt54/readme/DESCRIPTION.rst diff --git a/account_bank_statement_import_oca_camt54/static/description/icon.png b/account_statement_import_camt54/static/description/icon.png similarity index 100% rename from account_bank_statement_import_oca_camt54/static/description/icon.png rename to account_statement_import_camt54/static/description/icon.png diff --git a/account_bank_statement_import_oca_camt54/static/description/index.html b/account_statement_import_camt54/static/description/index.html similarity index 100% rename from account_bank_statement_import_oca_camt54/static/description/index.html rename to account_statement_import_camt54/static/description/index.html diff --git a/account_bank_statement_import_oca_camt54/tests/__init__.py b/account_statement_import_camt54/tests/__init__.py similarity index 100% rename from account_bank_statement_import_oca_camt54/tests/__init__.py rename to account_statement_import_camt54/tests/__init__.py diff --git a/account_bank_statement_import_oca_camt54/tests/test_get_partner_ref.py b/account_statement_import_camt54/tests/test_get_partner_ref.py similarity index 97% rename from account_bank_statement_import_oca_camt54/tests/test_get_partner_ref.py rename to account_statement_import_camt54/tests/test_get_partner_ref.py index 31905e1b..01170a18 100644 --- a/account_bank_statement_import_oca_camt54/tests/test_get_partner_ref.py +++ b/account_statement_import_camt54/tests/test_get_partner_ref.py @@ -7,7 +7,7 @@ from odoo.tests import common class TestGetPartnerRef(common.TransactionCase): def setUp(self): super().setUp() - self.Parser = self.env["account.bank.statement.import.camt.parser"] + self.Parser = self.env["account.statement.import.camt.parser"] self.ICP = self.env["ir.config_parameter"] def test_no_ICP(self): diff --git a/setup/account_statement_import_camt54/odoo/addons/account_statement_import_camt54 b/setup/account_statement_import_camt54/odoo/addons/account_statement_import_camt54 new file mode 120000 index 00000000..73b6643f --- /dev/null +++ b/setup/account_statement_import_camt54/odoo/addons/account_statement_import_camt54 @@ -0,0 +1 @@ +../../../../account_statement_import_camt54 \ No newline at end of file diff --git a/setup/account_statement_import_camt54/setup.py b/setup/account_statement_import_camt54/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/account_statement_import_camt54/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)