From 18dce65cdc508c03e299c25d7dd54c832a416ff2 Mon Sep 17 00:00:00 2001 From: houssine Date: Fri, 3 May 2019 11:05:56 +0200 Subject: [PATCH] [IMP] set iban non required for this localisation Remove iban number from the required fields and remove the field from the web form --- easy_my_coop_ch/models/coop.py | 5 +++++ easy_my_coop_ch/views/subscription_template.xml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/easy_my_coop_ch/models/coop.py b/easy_my_coop_ch/models/coop.py index e413242..c3ddacf 100644 --- a/easy_my_coop_ch/models/coop.py +++ b/easy_my_coop_ch/models/coop.py @@ -18,9 +18,14 @@ class subscription_request(models.Model): req_fields = super(subscription_request, self).get_required_field() if 'no_registre' in req_fields: req_fields.remove('no_registre') + if 'iban' in req_fields: + req_fields.remove('iban') return req_fields def check_belgian_identification_id(self, nat_register_num): # deactivate number validation for swiss localization return True + + def check_iban(self, iban): + return True diff --git a/easy_my_coop_ch/views/subscription_template.xml b/easy_my_coop_ch/views/subscription_template.xml index c14c41d..cdb3bd6 100644 --- a/easy_my_coop_ch/views/subscription_template.xml +++ b/easy_my_coop_ch/views/subscription_template.xml @@ -3,10 +3,12 @@ \ No newline at end of file