From 846d7dfeab33f94e4d74cb394bac5a660f7b0380 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Wed, 5 Aug 2026 10:10:48 +0200 Subject: [PATCH 1/4] [IMP] account_ebics_batch_payment: restrict EBICS file format domain to upload formats defined in EBICS config --- account_ebics_batch_payment/models/__init__.py | 2 +- .../models/account_journal.py | 13 +++++++++++++ .../views/account_journal_views.xml | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 account_ebics_batch_payment/models/account_journal.py diff --git a/account_ebics_batch_payment/models/__init__.py b/account_ebics_batch_payment/models/__init__.py index b9b458f..697c293 100644 --- a/account_ebics_batch_payment/models/__init__.py +++ b/account_ebics_batch_payment/models/__init__.py @@ -1 +1 @@ -from . import account_batch_payment, account_payment_method +from . import account_batch_payment, account_journal, account_payment_method diff --git a/account_ebics_batch_payment/models/account_journal.py b/account_ebics_batch_payment/models/account_journal.py new file mode 100644 index 0000000..8106a46 --- /dev/null +++ b/account_ebics_batch_payment/models/account_journal.py @@ -0,0 +1,13 @@ +# Copyright 2026 Noviat. +# License LGPL-3 or later (http://www.gnu.org/licenses/lgpl). + +from odoo import fields, models + + +class AccountJournal(models.Model): + _inherit = "account.journal" + + ebics_file_format_ids = fields.Many2many( + comodel_name="ebics.file.format", + related="ebics_config_id.ebics_file_format_ids", + ) diff --git a/account_ebics_batch_payment/views/account_journal_views.xml b/account_ebics_batch_payment/views/account_journal_views.xml index 771b8bb..4cbe47c 100644 --- a/account_ebics_batch_payment/views/account_journal_views.xml +++ b/account_ebics_batch_payment/views/account_journal_views.xml @@ -13,6 +13,7 @@ name="ebics_file_format_id" optional="hide" options="{'no_create': True}" + domain="[('id', 'in', parent.ebics_file_format_ids), ('type', '=', 'up')]" /> From cd6670ce9e98237f80cc25e49b4c03eb5eb41a9e Mon Sep 17 00:00:00 2001 From: oca-ci Date: Wed, 5 Aug 2026 08:33:49 +0000 Subject: [PATCH 2/4] [UPD] Update account_ebics_batch_payment.pot --- .../i18n/account_ebics_batch_payment.pot | 6 ++++++ account_ebics_batch_payment/i18n/fr.po | 6 ++++++ account_ebics_batch_payment/i18n/nl.po | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/account_ebics_batch_payment/i18n/account_ebics_batch_payment.pot b/account_ebics_batch_payment/i18n/account_ebics_batch_payment.pot index 08a5e05..129eb18 100644 --- a/account_ebics_batch_payment/i18n/account_ebics_batch_payment.pot +++ b/account_ebics_batch_payment/i18n/account_ebics_batch_payment.pot @@ -21,6 +21,7 @@ msgid "Batch Payment" msgstr "" #. module: account_ebics_batch_payment +#: model:ir.model.fields,field_description:account_ebics_batch_payment.field_account_journal__ebics_file_format_ids #: model:ir.model.fields,field_description:account_ebics_batch_payment.field_account_payment_method__ebics_file_format_id #: model:ir.model.fields,field_description:account_ebics_batch_payment.field_account_payment_method_line__ebics_file_format_id msgid "EBICS File Format" @@ -46,6 +47,11 @@ msgstr "" msgid "Hide Ebics Upload" msgstr "" +#. module: account_ebics_batch_payment +#: model:ir.model,name:account_ebics_batch_payment.model_account_journal +msgid "Journal" +msgstr "" + #. module: account_ebics_batch_payment #. odoo-python #: code:addons/account_ebics_batch_payment/models/account_batch_payment.py:0 diff --git a/account_ebics_batch_payment/i18n/fr.po b/account_ebics_batch_payment/i18n/fr.po index d1d8204..9f4e35d 100644 --- a/account_ebics_batch_payment/i18n/fr.po +++ b/account_ebics_batch_payment/i18n/fr.po @@ -28,6 +28,7 @@ msgid "Batch Payment" msgstr "Paiement par lot" #. module: account_ebics_batch_payment +#: model:ir.model.fields,field_description:account_ebics_batch_payment.field_account_journal__ebics_file_format_ids #: model:ir.model.fields,field_description:account_ebics_batch_payment.field_account_payment_method__ebics_file_format_id #: model:ir.model.fields,field_description:account_ebics_batch_payment.field_account_payment_method_line__ebics_file_format_id msgid "EBICS File Format" @@ -53,6 +54,11 @@ msgstr "" msgid "Hide Ebics Upload" msgstr "Masquer le téléversement Ebics" +#. module: account_ebics_batch_payment +#: model:ir.model,name:account_ebics_batch_payment.model_account_journal +msgid "Journal" +msgstr "" + #. module: account_ebics_batch_payment #. odoo-python #: code:addons/account_ebics_batch_payment/models/account_batch_payment.py:0 diff --git a/account_ebics_batch_payment/i18n/nl.po b/account_ebics_batch_payment/i18n/nl.po index c388da0..2ea0977 100644 --- a/account_ebics_batch_payment/i18n/nl.po +++ b/account_ebics_batch_payment/i18n/nl.po @@ -28,6 +28,7 @@ msgid "Batch Payment" msgstr "Batchbetaling" #. module: account_ebics_batch_payment +#: model:ir.model.fields,field_description:account_ebics_batch_payment.field_account_journal__ebics_file_format_ids #: model:ir.model.fields,field_description:account_ebics_batch_payment.field_account_payment_method__ebics_file_format_id #: model:ir.model.fields,field_description:account_ebics_batch_payment.field_account_payment_method_line__ebics_file_format_id msgid "EBICS File Format" @@ -53,6 +54,11 @@ msgstr "" msgid "Hide Ebics Upload" msgstr "Ebics-upload verbergen" +#. module: account_ebics_batch_payment +#: model:ir.model,name:account_ebics_batch_payment.model_account_journal +msgid "Journal" +msgstr "" + #. module: account_ebics_batch_payment #. odoo-python #: code:addons/account_ebics_batch_payment/models/account_batch_payment.py:0 From 7635a0aefb433b2819b743eb1169bab37083b941 Mon Sep 17 00:00:00 2001 From: Weblate Date: Wed, 5 Aug 2026 08:31:08 +0000 Subject: [PATCH 3/4] Translated using Weblate (French) Currently translated at 85.7% (6 of 7 strings) Translated using Weblate (French) Currently translated at 94.5% (35 of 37 strings) Co-authored-by: Weblate Co-authored-by: Weblate Translation Memory Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v18/account_ebics_batch/fr/ Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v18/account_ebics_batch_payment/fr/ Translation: Noviat Generic - Account EBICS - v18/account_ebics_batch Translation: Noviat Generic - Account EBICS - v18/account_ebics_batch_payment --- account_ebics_batch/i18n/fr.po | 10 +++++----- account_ebics_batch_payment/i18n/fr.po | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/account_ebics_batch/i18n/fr.po b/account_ebics_batch/i18n/fr.po index b06fd77..3b1c883 100644 --- a/account_ebics_batch/i18n/fr.po +++ b/account_ebics_batch/i18n/fr.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Odoo Server 18.0+e\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-08-31 23:02+0000\n" -"PO-Revision-Date: 2026-06-05 12:54+0000\n" +"PO-Revision-Date: 2026-08-04 16:23+0000\n" "Last-Translator: Weblate Translation Memory \n" "Language-Team: French 1;\n" -"X-Generator: Weblate 5.15.1\n" +"X-Generator: Weblate 2026.7.1\n" #. module: account_ebics_batch #: model:ir.model.fields,field_description:account_ebics_batch.field_ebics_batch_log__file_ids @@ -105,7 +105,7 @@ msgstr "Journaux d'import par lot EBICS" #. module: account_ebics_batch #: model:ir.model.fields,field_description:account_ebics_batch.field_ebics_batch_log__ebics_config_ids msgid "EBICS Configurations" -msgstr "" +msgstr "Configurations EBICS" #. module: account_ebics_batch #: model_terms:ir.ui.view,arch_db:account_ebics_batch.ebics_batch_log_view_form @@ -160,7 +160,7 @@ msgstr "Dernière mise à jour le" #. module: account_ebics_batch #: model_terms:ir.ui.view,arch_db:account_ebics_batch.ebics_batch_log_view_form msgid "Mark Done" -msgstr "" +msgstr "Marquer comme fait" #. module: account_ebics_batch #. odoo-python @@ -175,7 +175,7 @@ msgstr "" #. module: account_ebics_batch #: model:ir.model.fields,field_description:account_ebics_batch.field_ebics_batch_log_item__error_count msgid "Number of Errors" -msgstr "" +msgstr "Nombre d'erreurs" #. module: account_ebics_batch #: model:ir.model,name:account_ebics_batch.model_ebics_batch_log_item diff --git a/account_ebics_batch_payment/i18n/fr.po b/account_ebics_batch_payment/i18n/fr.po index 9f4e35d..a32af09 100644 --- a/account_ebics_batch_payment/i18n/fr.po +++ b/account_ebics_batch_payment/i18n/fr.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Odoo Server 18.0+e\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-08-31 23:02+0000\n" -"PO-Revision-Date: 2026-07-04 02:54+0000\n" +"PO-Revision-Date: 2026-08-05 08:31+0000\n" "Last-Translator: Weblate Translation Memory \n" "Language-Team: French 1;\n" -"X-Generator: Weblate 5.15.1\n" +"X-Generator: Weblate 2026.7.1\n" #. module: account_ebics_batch_payment #. odoo-python @@ -32,7 +32,7 @@ msgstr "Paiement par lot" #: model:ir.model.fields,field_description:account_ebics_batch_payment.field_account_payment_method__ebics_file_format_id #: model:ir.model.fields,field_description:account_ebics_batch_payment.field_account_payment_method_line__ebics_file_format_id msgid "EBICS File Format" -msgstr "" +msgstr "Format de fichier EBICS" #. module: account_ebics_batch_payment #. odoo-python @@ -70,4 +70,4 @@ msgstr "" #: model:ir.model,name:account_ebics_batch_payment.model_account_payment_method #: model:ir.model,name:account_ebics_batch_payment.model_account_payment_method_line msgid "Payment Methods" -msgstr "" +msgstr "Modes de paiement" From 7aee1f69b34b529055a4808382c79e63280780b0 Mon Sep 17 00:00:00 2001 From: Weblate Date: Wed, 5 Aug 2026 08:31:08 +0000 Subject: [PATCH 4/4] Translated using Weblate (Dutch) Currently translated at 85.7% (6 of 7 strings) Translated using Weblate (Dutch) Currently translated at 94.5% (35 of 37 strings) Co-authored-by: Weblate Co-authored-by: Weblate Translation Memory Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v18/account_ebics_batch/nl/ Translate-URL: https://translation.noviat.io/projects/noviat-generic-account-ebics-v18/account_ebics_batch_payment/nl/ Translation: Noviat Generic - Account EBICS - v18/account_ebics_batch Translation: Noviat Generic - Account EBICS - v18/account_ebics_batch_payment --- account_ebics_batch/i18n/nl.po | 6 +++--- account_ebics_batch_payment/i18n/nl.po | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/account_ebics_batch/i18n/nl.po b/account_ebics_batch/i18n/nl.po index aec2591..b204b0c 100644 --- a/account_ebics_batch/i18n/nl.po +++ b/account_ebics_batch/i18n/nl.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Odoo Server 18.0+e\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-08-31 23:13+0000\n" -"PO-Revision-Date: 2026-06-05 12:54+0000\n" +"PO-Revision-Date: 2026-08-04 16:23+0000\n" "Last-Translator: Weblate Translation Memory \n" "Language-Team: Dutch \n" "Language-Team: Dutch