From 71a618a4533975470b6107b223030d8fdfc43c4c Mon Sep 17 00:00:00 2001 From: Manuel Claeys Bouuaert Date: Fri, 31 Jul 2020 16:42:56 +0200 Subject: [PATCH] [FIX] easy_my_coop_website: country field mandatory, fix default id of 'Belgium' when not found --- easy_my_coop_website/controllers/main.py | 4 ++-- easy_my_coop_website/views/subscription_template.xml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/easy_my_coop_website/controllers/main.py b/easy_my_coop_website/controllers/main.py index bcdad5b..648cf1d 100644 --- a/easy_my_coop_website/controllers/main.py +++ b/easy_my_coop_website/controllers/main.py @@ -199,12 +199,12 @@ class WebsiteSubscription(http.Controller): if company.default_country_id: values["country_id"] = company.default_country_id.id else: - values["country_id"] = "21" + values["country_id"] = "20" if not values.get("activities_country_id"): if company.default_country_id: values["activities_country_id"] = company.default_country_id.id else: - values["activities_country_id"] = "21" + values["activities_country_id"] = "20" if not values.get("lang"): if company.default_lang_id: values["lang"] = company.default_lang_id.code diff --git a/easy_my_coop_website/views/subscription_template.xml b/easy_my_coop_website/views/subscription_template.xml index 70d2fbb..8cf57a4 100644 --- a/easy_my_coop_website/views/subscription_template.xml +++ b/easy_my_coop_website/views/subscription_template.xml @@ -309,6 +309,7 @@