mirror of
https://github.com/brain-tec/account_ebics.git
synced 2026-10-17 16:29:06 +00:00
[IMP] Add upload state tracking on EBICS payment files
account_ebics: - Add pain_state and ebics_order_number to ebics.file - Set these fields after a successful upload - Add neutralized property to api.Environment account_ebics_batch_payment: - Add EBICS notebook page with upload info to batch payment form - Post chatter message with OrderID after upload account_ebics_payment_order: - Fix broken postprocess: replace deprecated active_model/active_id context keys with model/id
This commit is contained in:
1 parent
2cfdbd50f8
commit
2d301e87f8
10 files changed
+109
-16
No files matched your search
@@ -1,5 +1,8 @@
|
||||
import functools
|
||||
import logging
|
||||
|
||||
from odoo import api
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
try:
|
||||
@@ -7,3 +10,22 @@ try:
|
||||
from . import wizards
|
||||
except Exception:
|
||||
_logger.warning("Import Error, check if fintech lib has been installed")
|
||||
|
||||
|
||||
@functools.cached_property
|
||||
def neutralized(self):
|
||||
return bool(
|
||||
self["ir.config_parameter"].sudo().get_param("database.is_neutralized")
|
||||
or self["ir.ui.view"]
|
||||
.sudo()
|
||||
.search_count(
|
||||
[
|
||||
("key", "in", ("web.neutralize_banner", "website.neutralize_ribbon")),
|
||||
("active", "=", True),
|
||||
]
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
api.Environment.neutralized = neutralized
|
||||
neutralized.__set_name__(api.Environment, "neutralized")
|
||||
Reference in new issue
Block a user