details: https://code.tryton.org/tryton/commit/dc28a27b9e81
branch: default
user: Cédric Krier <[email protected]>
date: Mon Feb 16 13:18:22 2026 +0100
description:
Add iban compact property to bank account
diffstat:
modules/bank/bank.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 0c1cc43ae957 -r dc28a27b9e81 modules/bank/bank.py
--- a/modules/bank/bank.py Mon Feb 16 10:48:14 2026 +0100
+++ b/modules/bank/bank.py Mon Feb 16 13:18:22 2026 +0100
@@ -144,6 +144,12 @@
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)