From 6a14c321d325c12d727a4c09aa415f8265e75ea0 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sun, 11 Oct 2026 20:52:28 +0200 Subject: [PATCH] [IMP] Add payment upload state tracking on payment orders account_ebics_payment_order: Add EBICS notebook page with upload info to payment order form --- README.md | 6 +++--- account_ebics_payment_order/__manifest__.py | 2 +- .../models/account_payment_order.py | 17 ++++++++++++++++- .../views/account_payment_order_views.xml | 12 ++++++++++++ 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0a56c04..f5cbc01 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,12 @@ Available addons ---------------- addon | version | maintainers | summary --- | --- | --- | --- -[account_ebics](account_ebics/) | 18.0.1.2.2 | | Download bank statements and upload payment files directly from Odoo, using the European EBICS standard +[account_ebics](account_ebics/) | 18.0.1.3.0 | | Download bank statements and upload payment files directly from Odoo, using the European EBICS standard [account_ebics_batch](account_ebics_batch/) | 18.0.1.0.1 | | Download and process your EBICS files automatically, on a schedule -[account_ebics_batch_payment](account_ebics_batch_payment/) | 18.0.1.2.0 | | Send an Odoo Enterprise batch payment to the bank over EBICS +[account_ebics_batch_payment](account_ebics_batch_payment/) | 18.0.1.3.0 | | Send an Odoo Enterprise batch payment to the bank over EBICS [account_ebics_oca_statement_import](account_ebics_oca_statement_import/) | 18.0.1.0.1 | | Process EBICS statement files with the OCA bank statement import [account_ebics_oe](account_ebics_oe/) | 18.0.1.0.0 | | Place the EBICS menus in the Odoo Enterprise accounting application -[account_ebics_payment_order](account_ebics_payment_order/) | 18.0.1.2.0 | | Send an OCA payment order to the bank over EBICS +[account_ebics_payment_order](account_ebics_payment_order/) | 18.0.1.3.0 | | Send an OCA payment order to the bank over EBICS [//]: # (end addons) diff --git a/account_ebics_payment_order/__manifest__.py b/account_ebics_payment_order/__manifest__.py index 7bc43bf..4605328 100644 --- a/account_ebics_payment_order/__manifest__.py +++ b/account_ebics_payment_order/__manifest__.py @@ -4,7 +4,7 @@ { "name": "EBICS - Payment Orders (OCA)", "summary": "Send an OCA payment order to the bank over EBICS", - "version": "18.0.1.2.1", + "version": "18.0.1.3.0", "license": "LGPL-3", "author": "Noviat", "website": "https://www.noviat.com/", diff --git a/account_ebics_payment_order/models/account_payment_order.py b/account_ebics_payment_order/models/account_payment_order.py index d8ec3bb..a1f3e6a 100644 --- a/account_ebics_payment_order/models/account_payment_order.py +++ b/account_ebics_payment_order/models/account_payment_order.py @@ -8,6 +8,19 @@ from odoo.exceptions import UserError class AccountPaymentOrder(models.Model): _inherit = "account.payment.order" + ebics_config_id = fields.Many2one( + comodel_name="ebics.config", + related="journal_id.ebics_config_id", + ) + ebics_file_id = fields.Many2one( + comodel_name="ebics.file", + string="EBICS Upload File", + readonly=True, + ) + ebics_order_number = fields.Char( + related="ebics_file_id.ebics_order_number", + string="EBICS OrderID", + ) hide_ebics_upload = fields.Boolean( compute="_compute_hide_ebics_upload", default=True ) @@ -16,7 +29,9 @@ class AccountPaymentOrder(models.Model): def _compute_hide_ebics_upload(self): for rec in self: rec.hide_ebics_upload = ( - not rec.journal_id.ebics_config_id or rec.state != "generated" + self.env.neutralized + or not rec.journal_id.ebics_config_id + or rec.state != "generated" ) def ebics_upload(self): diff --git a/account_ebics_payment_order/views/account_payment_order_views.xml b/account_ebics_payment_order/views/account_payment_order_views.xml index b2c1f3f..da7852a 100644 --- a/account_ebics_payment_order/views/account_payment_order_views.xml +++ b/account_ebics_payment_order/views/account_payment_order_views.xml @@ -17,6 +17,18 @@ class="oe_highlight" /> + + + + + + + +