[14.0][MIG] account_statement_import_camt54

This commit is contained in:
Iryna Vyshnevska
2020-12-06 19:13:40 +02:00
parent 673d4ccd52
commit 0bc11c2e1a
16 changed files with 15 additions and 53 deletions

View File

@@ -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 ""

View File

@@ -1,2 +0,0 @@
from . import account_bank_statement_import
from . import parser

View File

@@ -2,11 +2,11 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{ {
"name": "Bank Account Camt54 Import", "name": "Bank Account Camt54 Import",
"version": "13.0.1.0.0", "version": "14.0.1.0.0",
"category": "Account", "category": "Account",
"website": "https://github.com/OCA/bank-statement-import", "website": "https://github.com/OCA/bank-statement-import",
"author": "camptocamp, " "Odoo Community Association (OCA)", "author": "camptocamp, " "Odoo Community Association (OCA)",
"license": "AGPL-3", "license": "AGPL-3",
"installable": True, "installable": True,
"depends": ["account_bank_statement_import_camt_oca"], "depends": ["account_statement_import_camt"],
} }

View File

@@ -0,0 +1,2 @@
from . import account_statement_import
from . import parser

View File

@@ -7,10 +7,10 @@ from odoo import models
_logger = logging.getLogger(__name__) _logger = logging.getLogger(__name__)
class AccountBankStatementImport(models.TransientModel): class AccountStatementImport(models.TransientModel):
"""Add process_camt method to account.bank.statement.import.""" """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): def _create_bank_statements(self, stmts_vals):
""" Set balance_end_real if not already provided by the file.""" """ Set balance_end_real if not already provided by the file."""

View File

@@ -7,7 +7,7 @@ from odoo import _, exceptions, models
class CamtParser(models.AbstractModel): class CamtParser(models.AbstractModel):
"""Parser for camt bank statement import files.""" """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): def _get_partner_ref(self, isr):
ICP = self.env["ir.config_parameter"] ICP = self.env["ir.config_parameter"]

View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -7,7 +7,7 @@ from odoo.tests import common
class TestGetPartnerRef(common.TransactionCase): class TestGetPartnerRef(common.TransactionCase):
def setUp(self): def setUp(self):
super().setUp() 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"] self.ICP = self.env["ir.config_parameter"]
def test_no_ICP(self): def test_no_ICP(self):

View File

@@ -0,0 +1 @@
../../../../account_statement_import_camt54

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)