details:   https://code.tryton.org/tryton/commit/c4839dff9321
branch:    7.0
user:      Cédric Krier <[email protected]>
date:      Mon Sep 07 18:12:38 2026 +0200
description:
        Require a message file for SEPA message

        Closes #15073
        (grafted from ccb26ad8dd0efcfc062c8d95fab29a6bfba5b74a)
diffstat:

 modules/account_payment_sepa/payment.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 8d5145cd79d5 -r c4839dff9321 modules/account_payment_sepa/payment.py
--- a/modules/account_payment_sepa/payment.py   Mon Sep 07 18:01:00 2026 +0200
+++ b/modules/account_payment_sepa/payment.py   Mon Sep 07 18:12:38 2026 +0200
@@ -823,7 +823,10 @@
         }
     message = fields.Binary('Message', filename='filename',
         file_id=file_id, store_prefix=store_prefix,
-        states=_states)
+        states={
+            'required': True,
+            'readonly': _states['readonly'],
+            })
     message_file_id = fields.Char("Message File ID", readonly=True)
     filename = fields.Function(fields.Char('Filename'), 'get_filename')
     type = fields.Selection([

Reply via email to