From 6e50f34afd3669a28a66a5451922bc65b8db57f6 Mon Sep 17 00:00:00 2001 From: houssine Date: Thu, 10 Oct 2019 14:13:48 +0200 Subject: [PATCH] [FIX] fix by pass control when iban not given --- easy_my_coop/models/coop.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/easy_my_coop/models/coop.py b/easy_my_coop/models/coop.py index 82014a0..20a0e87 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -107,7 +107,9 @@ class subscription_request(models.Model): @api.depends('iban', 'skip_control_ng', 'is_company') def _validated_lines(self): for sub_request in self: - validated = self.check_iban(sub_request.iban) + validated = (self.check_iban(sub_request.iban) + or sub_request.skip_control_ng + ) sub_request.validated = validated @api.multi