From 583579128465b1d93d4fd18d762bfd390525af5e Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Mon, 14 Dec 2020 09:32:49 -0800 Subject: [PATCH 1/6] [14.0][MIG]account_ebics --- account_ebics_oca_statement_import/README.rst | 17 +++++ .../__init__.py | 1 + .../__manifest__.py | 17 +++++ .../static/description/icon.png | Bin 0 -> 17137 bytes .../wizards/__init__.py | 1 + .../wizards/account_statement_import.py | 62 ++++++++++++++++++ 6 files changed, 98 insertions(+) create mode 100644 account_ebics_oca_statement_import/README.rst create mode 100644 account_ebics_oca_statement_import/__init__.py create mode 100644 account_ebics_oca_statement_import/__manifest__.py create mode 100644 account_ebics_oca_statement_import/static/description/icon.png create mode 100644 account_ebics_oca_statement_import/wizards/__init__.py create mode 100644 account_ebics_oca_statement_import/wizards/account_statement_import.py diff --git a/account_ebics_oca_statement_import/README.rst b/account_ebics_oca_statement_import/README.rst new file mode 100644 index 0000000..4fe75a6 --- /dev/null +++ b/account_ebics_oca_statement_import/README.rst @@ -0,0 +1,17 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-blue.png + :target: https://www.gnu.org/licenses/lgpl + :alt: License: LGPL-3 + +========================================================== +Deploy account_ebics module with OCA Bank Statement Import +========================================================== + +This module makes it possible to use OCA account_statement_import +in combination with 'account_ebics'. + +This module will be installed automatically when following modules are activated +on your odoo database : + +- account_ebics +- account_statement_import + diff --git a/account_ebics_oca_statement_import/__init__.py b/account_ebics_oca_statement_import/__init__.py new file mode 100644 index 0000000..5cb1c49 --- /dev/null +++ b/account_ebics_oca_statement_import/__init__.py @@ -0,0 +1 @@ +from . import wizards diff --git a/account_ebics_oca_statement_import/__manifest__.py b/account_ebics_oca_statement_import/__manifest__.py new file mode 100644 index 0000000..d9f3fef --- /dev/null +++ b/account_ebics_oca_statement_import/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2020 Noviat. +# License LGPL-3 or later (http://www.gnu.org/licenses/lpgl). + +{ + 'name': 'account_ebics with OCA Bank Statement Imoort', + 'summary': "Use OCA Bank Statement Import with account_ebics", + 'version': '14.0.1.0.0', + 'author': 'Noviat', + 'category': 'Hidden', + 'license': 'LGPL-3', + 'depends': [ + 'account_ebics', + 'account_statement_import', + ], + 'installable': True, + 'auto_install': True, +} diff --git a/account_ebics_oca_statement_import/static/description/icon.png b/account_ebics_oca_statement_import/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..889d1294392923a091fba44560342126a11c1aac GIT binary patch literal 17137 zcmVPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXfLWW61K~#8Ny}buu zQ&+a`?|1L~@64T<_cH5fes7g^awaml7>tt)dW~#)~cDzIbW;@W)E@ zqnCx4xo4KPBhs-@AKw$Q^wm<2$vl9*US2uYA#?8#`~2PWhRF(}qJ|MzVOVs)0#}@3 z0c<(hG)&07eNq=iK|%t2KQ9*V5AeUe(mzI4VvsZ-$;i@rsUb^QtW}cOXV(UK<`B;r zB4`V-@jo#bVvzfJR<9({^&#neQ5svvawPFGq4Bo<6p0>-p&N%OG;UDi{WbQnwPZEO zI)_=G5O+EFJdcHlb9&eyGYv%Si}wbH+0qeFg8(e58D`O=qB>d_>5CJ^+hRLzKjSj9 zg3jK47zc-?_f0%Du>sPS67LI%M)k1}(THz|ulI_^u|6>bqEqJE8i7gD5H%>tGHiVu z4%R8XHasSFiq}YGvA&-o=~|X?C)jUmoQ0W$Mf-)JkU5OzQFQhUNM#sFz01^xK8`pK z(LXqV;URIQ06a>Y>Nk%OXMqIQ%Tn%y+r8PuL8Hj zsMqvUX4JRzSj7EC%>Xro2BDS#suvBd1~jyFptijO)p`S}y6#k$BxNVnrAL*%gKCFD zXOZ#_)pT@7Vk*mA}RTTffG{ggB1gfApHU>9H8b;bd^dEV|b*RbcbE%uzbB1v2? z$~koEJPx1yY1;!Q&W=g!f35u|E=trfFD#P)3kN$6ShxtW$PEtk z3BY`_U%X&>bAWKg1&YQF*g6Nm_EreI!qbtEt3*z@21PYGR5ta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statement_import/wizards/__init__.py b/account_ebics_oca_statement_import/wizards/__init__.py new file mode 100644 index 0000000..ae69bca --- /dev/null +++ b/account_ebics_oca_statement_import/wizards/__init__.py @@ -0,0 +1 @@ +from . import account_statement_import diff --git a/account_ebics_oca_statement_import/wizards/account_statement_import.py b/account_ebics_oca_statement_import/wizards/account_statement_import.py new file mode 100644 index 0000000..0527c8c --- /dev/null +++ b/account_ebics_oca_statement_import/wizards/account_statement_import.py @@ -0,0 +1,62 @@ +# Copyright 2009-2020 Noviat. +# License LGPL-3 or later (http://www.gnu.org/licenses/lpgl). + +import logging + +from odoo import models, _ + +_logger = logging.getLogger(__name__) + + +class AccountStatementImport(models.TransientModel): + _inherit = 'account.statement.import' + + def _check_parsed_data(self, stmts_vals): + """ Basic and structural verifications """ + if self.env.context.get('active_model') == 'ebics.file': + message = False + if len(stmts_vals) == 0: + message = _("This file doesn't contain any statement.") + if not message: + no_st_line = True + for vals in stmts_vals: + if vals['transactions'] and len(vals['transactions']) > 0: + no_st_line = False + break + if no_st_line: + message = _('This file doesn\'t contain any transaction.') + if message: + log_msg = _( + "Error detected while processing and EBICS File" + ) + ':\n' + message + _logger.warn(log_msg) + return + super()._check_parsed_data(stmts_vals) + + def _create_bank_statements(self, stmts_vals, result): + """ + Return error message to ebics.file when handling empty camt. + + Remarks/TODO: + We could add more info to the message (e.g. date, balance, ...) + and write this to the ebics.file, note field. + We could also create empty bank statement (in state done) to clearly + show days without transactions via the bank statement list view. + """ + if self.env.context.get('active_model') == 'ebics.file': + transactions = False + for st_vals in stmts_vals: + if st_vals.get('transactions'): + transactions = True + break + if not transactions: + message = _('This file doesn\'t contain any transaction.') + statement_ids = [] + notifications = { + 'type': 'warning', + 'message': message, + 'details': '' + } + return st_line_ids, [notifications] + + return super()._create_bank_statements(stmts_vals, result) From 3d110c9aa65608b5b12518f81454aacb2821dfc2 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sun, 11 Apr 2021 17:30:00 +0200 Subject: [PATCH 2/6] remove pdb --- .../wizards/account_statement_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_ebics_oca_statement_import/wizards/account_statement_import.py b/account_ebics_oca_statement_import/wizards/account_statement_import.py index 0527c8c..235c796 100644 --- a/account_ebics_oca_statement_import/wizards/account_statement_import.py +++ b/account_ebics_oca_statement_import/wizards/account_statement_import.py @@ -51,7 +51,7 @@ class AccountStatementImport(models.TransientModel): break if not transactions: message = _('This file doesn\'t contain any transaction.') - statement_ids = [] + st_line_ids = [] notifications = { 'type': 'warning', 'message': message, From 54dca8bc831bb771c67c8023bae8dc3a268c9753 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Mon, 12 Apr 2021 22:36:26 +0200 Subject: [PATCH 3/6] [14.0][FIX]account_ebics_oca_statement_import --- .../wizards/account_statement_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_ebics_oca_statement_import/wizards/account_statement_import.py b/account_ebics_oca_statement_import/wizards/account_statement_import.py index 235c796..430d1fc 100644 --- a/account_ebics_oca_statement_import/wizards/account_statement_import.py +++ b/account_ebics_oca_statement_import/wizards/account_statement_import.py @@ -31,7 +31,7 @@ class AccountStatementImport(models.TransientModel): ) + ':\n' + message _logger.warn(log_msg) return - super()._check_parsed_data(stmts_vals) + return super()._check_parsed_data(stmts_vals) def _create_bank_statements(self, stmts_vals, result): """ From 8f04786d401e336223a43085325e9e9bd633f155 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Tue, 10 May 2022 21:40:54 +0200 Subject: [PATCH 4/6] [14.0]black, isort, prettier --- .../__manifest__.py | 22 +++++++------- .../wizards/account_statement_import.py | 30 +++++++++---------- 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/account_ebics_oca_statement_import/__manifest__.py b/account_ebics_oca_statement_import/__manifest__.py index d9f3fef..a141b7a 100644 --- a/account_ebics_oca_statement_import/__manifest__.py +++ b/account_ebics_oca_statement_import/__manifest__.py @@ -2,16 +2,16 @@ # License LGPL-3 or later (http://www.gnu.org/licenses/lpgl). { - 'name': 'account_ebics with OCA Bank Statement Imoort', - 'summary': "Use OCA Bank Statement Import with account_ebics", - 'version': '14.0.1.0.0', - 'author': 'Noviat', - 'category': 'Hidden', - 'license': 'LGPL-3', - 'depends': [ - 'account_ebics', - 'account_statement_import', + "name": "account_ebics with OCA Bank Statement Imoort", + "summary": "Use OCA Bank Statement Import with account_ebics", + "version": "14.0.1.0.0", + "author": "Noviat", + "category": "Hidden", + "license": "LGPL-3", + "depends": [ + "account_ebics", + "account_statement_import", ], - 'installable': True, - 'auto_install': True, + "installable": True, + "auto_install": True, } diff --git a/account_ebics_oca_statement_import/wizards/account_statement_import.py b/account_ebics_oca_statement_import/wizards/account_statement_import.py index 430d1fc..cc49e00 100644 --- a/account_ebics_oca_statement_import/wizards/account_statement_import.py +++ b/account_ebics_oca_statement_import/wizards/account_statement_import.py @@ -3,32 +3,34 @@ import logging -from odoo import models, _ +from odoo import _, models _logger = logging.getLogger(__name__) class AccountStatementImport(models.TransientModel): - _inherit = 'account.statement.import' + _inherit = "account.statement.import" def _check_parsed_data(self, stmts_vals): """ Basic and structural verifications """ - if self.env.context.get('active_model') == 'ebics.file': + if self.env.context.get("active_model") == "ebics.file": message = False if len(stmts_vals) == 0: message = _("This file doesn't contain any statement.") if not message: no_st_line = True for vals in stmts_vals: - if vals['transactions'] and len(vals['transactions']) > 0: + if vals["transactions"] and len(vals["transactions"]) > 0: no_st_line = False break if no_st_line: - message = _('This file doesn\'t contain any transaction.') + message = _("This file doesn't contain any transaction.") if message: - log_msg = _( - "Error detected while processing and EBICS File" - ) + ':\n' + message + log_msg = ( + _("Error detected while processing and EBICS File") + + ":\n" + + message + ) _logger.warn(log_msg) return return super()._check_parsed_data(stmts_vals) @@ -43,20 +45,16 @@ class AccountStatementImport(models.TransientModel): We could also create empty bank statement (in state done) to clearly show days without transactions via the bank statement list view. """ - if self.env.context.get('active_model') == 'ebics.file': + if self.env.context.get("active_model") == "ebics.file": transactions = False for st_vals in stmts_vals: - if st_vals.get('transactions'): + if st_vals.get("transactions"): transactions = True break if not transactions: - message = _('This file doesn\'t contain any transaction.') + message = _("This file doesn't contain any transaction.") st_line_ids = [] - notifications = { - 'type': 'warning', - 'message': message, - 'details': '' - } + notifications = {"type": "warning", "message": message, "details": ""} return st_line_ids, [notifications] return super()._create_bank_statements(stmts_vals, result) From c256933e3926204e62fa698d9a6d609882886fe5 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sat, 26 Nov 2022 16:40:24 +0100 Subject: [PATCH 5/6] [IMP] account_ebics_oca_statement_import: black, isort, prettier --- .../wizards/account_statement_import.py | 2 +- .../odoo/addons/account_ebics_oca_statement_import | 1 + setup/account_ebics_oca_statement_import/setup.py | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 120000 setup/account_ebics_oca_statement_import/odoo/addons/account_ebics_oca_statement_import create mode 100644 setup/account_ebics_oca_statement_import/setup.py diff --git a/account_ebics_oca_statement_import/wizards/account_statement_import.py b/account_ebics_oca_statement_import/wizards/account_statement_import.py index cc49e00..86b798d 100644 --- a/account_ebics_oca_statement_import/wizards/account_statement_import.py +++ b/account_ebics_oca_statement_import/wizards/account_statement_import.py @@ -12,7 +12,7 @@ class AccountStatementImport(models.TransientModel): _inherit = "account.statement.import" def _check_parsed_data(self, stmts_vals): - """ Basic and structural verifications """ + """Basic and structural verifications""" if self.env.context.get("active_model") == "ebics.file": message = False if len(stmts_vals) == 0: diff --git a/setup/account_ebics_oca_statement_import/odoo/addons/account_ebics_oca_statement_import b/setup/account_ebics_oca_statement_import/odoo/addons/account_ebics_oca_statement_import new file mode 120000 index 0000000..766f43e --- /dev/null +++ b/setup/account_ebics_oca_statement_import/odoo/addons/account_ebics_oca_statement_import @@ -0,0 +1 @@ +../../../../account_ebics_oca_statement_import \ No newline at end of file diff --git a/setup/account_ebics_oca_statement_import/setup.py b/setup/account_ebics_oca_statement_import/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/account_ebics_oca_statement_import/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From 733cdff14586f707e27c91c9fdfeb7b8b63d62db Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sat, 26 Nov 2022 16:42:56 +0100 Subject: [PATCH 6/6] [MIG] account_ebics_oca_statement_import: Migration to 15.0 --- account_ebics_oca_statement_import/__manifest__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/account_ebics_oca_statement_import/__manifest__.py b/account_ebics_oca_statement_import/__manifest__.py index a141b7a..7c4c49c 100644 --- a/account_ebics_oca_statement_import/__manifest__.py +++ b/account_ebics_oca_statement_import/__manifest__.py @@ -1,11 +1,12 @@ -# Copyright 2020 Noviat. +# Copyright 2020-2022 Noviat. # License LGPL-3 or later (http://www.gnu.org/licenses/lpgl). { "name": "account_ebics with OCA Bank Statement Imoort", "summary": "Use OCA Bank Statement Import with account_ebics", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "author": "Noviat", + "website": "https://www.noviat.com", "category": "Hidden", "license": "LGPL-3", "depends": [