mirror of
https://github.com/brain-tec/account_ebics.git
synced 2026-04-26 07:36:51 +00:00
Merge pull request #78 from Noviat/18.0
Syncing from upstream Noviat/account_ebics (18.0)
This commit is contained in:
@@ -15,7 +15,7 @@ Available addons
|
|||||||
----------------
|
----------------
|
||||||
addon | version | maintainers | summary
|
addon | version | maintainers | summary
|
||||||
--- | --- | --- | ---
|
--- | --- | --- | ---
|
||||||
[account_ebics](account_ebics/) | 18.0.1.1.1 | | EBICS banking protocol
|
[account_ebics](account_ebics/) | 18.0.1.1.2 | | EBICS banking protocol
|
||||||
[account_ebics_batch](account_ebics_batch/) | 18.0.1.0.0 | | EBICS Files automated import and processing
|
[account_ebics_batch](account_ebics_batch/) | 18.0.1.0.0 | | EBICS Files automated import and processing
|
||||||
[account_ebics_batch_payment](account_ebics_batch_payment/) | 18.0.1.0.0 | | Upload Batch Payment via EBICS
|
[account_ebics_batch_payment](account_ebics_batch_payment/) | 18.0.1.0.0 | | Upload Batch Payment via EBICS
|
||||||
[account_ebics_oca_statement_import](account_ebics_oca_statement_import/) | 18.0.1.0.0 | | Use OCA Bank Statement Import with account_ebics
|
[account_ebics_oca_statement_import](account_ebics_oca_statement_import/) | 18.0.1.0.0 | | Use OCA Bank Statement Import with account_ebics
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "EBICS banking protocol",
|
"name": "EBICS banking protocol",
|
||||||
"version": "18.0.1.1.1",
|
"version": "18.0.1.1.2",
|
||||||
"license": "LGPL-3",
|
"license": "LGPL-3",
|
||||||
"author": "Noviat",
|
"author": "Noviat",
|
||||||
"website": "https://www.noviat.com/",
|
"website": "https://www.noviat.com/",
|
||||||
|
|||||||
@@ -660,6 +660,12 @@ msgid ""
|
|||||||
"(%(order_type)s):"
|
"(%(order_type)s):"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_ebics
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/account_ebics/wizards/ebics_admin_order.py:0
|
||||||
|
msgid "EBICS Technical Error during execution of order %(order_type)s:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: account_ebics
|
#. module: account_ebics
|
||||||
#. odoo-python
|
#. odoo-python
|
||||||
#: code:addons/account_ebics/models/ebics_userid.py:0
|
#: code:addons/account_ebics/models/ebics_userid.py:0
|
||||||
|
|||||||
@@ -675,6 +675,12 @@ msgid ""
|
|||||||
"(order_type)s):"
|
"(order_type)s):"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_ebics
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/account_ebics/wizards/ebics_admin_order.py:0
|
||||||
|
msgid "EBICS Technical Error during execution of order %(order_type)s:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: account_ebics
|
#. module: account_ebics
|
||||||
#. odoo-python
|
#. odoo-python
|
||||||
#: code:addons/account_ebics/models/ebics_userid.py:0
|
#: code:addons/account_ebics/models/ebics_userid.py:0
|
||||||
|
|||||||
@@ -675,6 +675,12 @@ msgid ""
|
|||||||
"(order_type)s):"
|
"(order_type)s):"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_ebics
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/account_ebics/wizards/ebics_admin_order.py:0
|
||||||
|
msgid "EBICS Technical Error during execution of order %(order_type)s:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: account_ebics
|
#. module: account_ebics
|
||||||
#. odoo-python
|
#. odoo-python
|
||||||
#: code:addons/account_ebics/models/ebics_userid.py:0
|
#: code:addons/account_ebics/models/ebics_userid.py:0
|
||||||
|
|||||||
@@ -1,10 +1,18 @@
|
|||||||
# Copyright 2009-2024 Noviat.
|
# Copyright 2024 Noviat.
|
||||||
# License LGPL-3 or later (https://www.gnu.org/licenses/lgpl).
|
# License LGPL-3 or later (https://www.gnu.org/licenses/lgpl).
|
||||||
|
|
||||||
|
import logging
|
||||||
import pprint
|
import pprint
|
||||||
|
|
||||||
from odoo import api, fields, models
|
from odoo import api, fields, models
|
||||||
|
|
||||||
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
try:
|
||||||
|
from fintech.ebics import EbicsTechnicalError
|
||||||
|
except ImportError:
|
||||||
|
_logger.warning("Failed to import fintech")
|
||||||
|
|
||||||
|
|
||||||
class EbicsAdminOrder(models.TransientModel):
|
class EbicsAdminOrder(models.TransientModel):
|
||||||
_inherit = "ebics.xfer"
|
_inherit = "ebics.xfer"
|
||||||
@@ -34,9 +42,18 @@ class EbicsAdminOrder(models.TransientModel):
|
|||||||
% self.ebics_config_id.name
|
% self.ebics_config_id.name
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
data = getattr(client, self.admin_order_type)(parsed=True)
|
try:
|
||||||
pp = pprint.PrettyPrinter()
|
data = getattr(client, self.admin_order_type)(parsed=True)
|
||||||
self.note = pp.pformat(data)
|
pp = pprint.PrettyPrinter()
|
||||||
|
self.note = pp.pformat(data)
|
||||||
|
except EbicsTechnicalError as e:
|
||||||
|
self.note = "\n"
|
||||||
|
self.note += self.env._(
|
||||||
|
"EBICS Technical Error during execution of order %(order_type)s:",
|
||||||
|
order_type=self.admin_order_type,
|
||||||
|
)
|
||||||
|
self.note += "\n"
|
||||||
|
self.note += f"{e.message} (code: {e.code})"
|
||||||
module = __name__.split("addons.")[1].split(".")[0]
|
module = __name__.split("addons.")[1].split(".")[0]
|
||||||
result_view = self.env.ref(f"{module}.ebics_admin_order_view_form_result")
|
result_view = self.env.ref(f"{module}.ebics_admin_order_view_form_result")
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user