From 948c375e5925e5e79d7f3173b8ed6758e37ce1fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 9 Jun 2024 15:03:51 +0200 Subject: [PATCH] Save party before saving bank created from BIC This prevents the warning about unsaved relation record. --- modules/bank/bank.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/bank/bank.py b/modules/bank/bank.py index 7031663810..c3f2f085db 100644 --- a/modules/bank/bank.py +++ b/modules/bank/bank.py @@ -82,6 +82,7 @@ class Bank(ModelSQL, ModelView): else: name = None bank = cls(party=Party(name=name), bic=bic.compact) + bank.party.save() bank.save() return bank