From 7cb548f280a10e31f6ce2c867df01e8d315dc4a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 16 Feb 2026 13:18:22 +0100 Subject: [PATCH] Add iban compact property to bank account --- modules/bank/bank.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/bank/bank.py b/modules/bank/bank.py index 62c32883b4..ada4c7e9c1 100644 --- a/modules/bank/bank.py +++ b/modules/bank/bank.py @@ -144,6 +144,12 @@ class Account(DeactivableMixin, ModelSQL, ModelView): if number.type == 'iban': return number.number + @property + def iban_compact(self): + for number in self.numbers: + if number.type == 'iban': + return number.number_compact + @classmethod def validate(cls, accounts): super().validate(accounts)