From cadc64f2ce4d99b4474df78e9008eb1947b04590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 14 Mar 2025 18:36:42 +0100 Subject: [PATCH] Hide origin of incoming SEPA message Closes #13920 --- modules/account_payment_sepa/payment.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/account_payment_sepa/payment.py b/modules/account_payment_sepa/payment.py index 0724688385..6bf715bb18 100644 --- a/modules/account_payment_sepa/payment.py +++ b/modules/account_payment_sepa/payment.py @@ -821,7 +821,12 @@ class Message(Workflow, ModelSQL, ModelView): states={ 'readonly': Eval('state') != 'draft', }) - origin = fields.Reference("Origin", selection='get_origin', states=_states) + origin = fields.Reference( + "Origin", selection='get_origin', + states={ + 'readonly': _states['readonly'], + 'invisible': Eval('type') == 'in', + }) state = fields.Selection([ ('draft', 'Draft'), ('waiting', 'Waiting'),