Browse Source

Allow company_register_number field to not be required

pull/75/head
enricostano 5 years ago
parent
commit
83ee896b33
  1. 2
      easy_my_coop_website/controllers/main.py

2
easy_my_coop_website/controllers/main.py

@ -371,7 +371,7 @@ class WebsiteSubscription(http.Controller):
values["share_product_id"] = self.get_selected_share(kwargs).id values["share_product_id"] = self.get_selected_share(kwargs).id
if is_company: if is_company:
if kwargs.get("company_register_number", is_company):
if kwargs.get("company_register_number"):
values["company_register_number"] = re.sub('[^0-9a-zA-Z]+', values["company_register_number"] = re.sub('[^0-9a-zA-Z]+',
'', '',
kwargs.get("company_register_number")) kwargs.get("company_register_number"))

Loading…
Cancel
Save