From e5898916d36f0034698fd230435c57d70a020431 Mon Sep 17 00:00:00 2001 From: Upeksha Liyanage <11607767+glupeksha@users.noreply.github.com> Date: Sun, 3 Jul 2022 02:04:30 +0530 Subject: [PATCH 1/3] Update auth_signup.py [FIX] saas_apps_signup: res.users.signup_to_try raises exception (#126) --- saas_apps_signup/controllers/auth_signup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/saas_apps_signup/controllers/auth_signup.py b/saas_apps_signup/controllers/auth_signup.py index f1b2b121..11611eb3 100644 --- a/saas_apps_signup/controllers/auth_signup.py +++ b/saas_apps_signup/controllers/auth_signup.py @@ -56,6 +56,8 @@ def get_auth_signup_qcontext(self): template = None if template: d["operator_id"] = template._random_ready_operator_id() + else: + d["operator_id"] = request.env.ref("saas_apps.base_template")._random_ready_operator_id() d['langs'] = odoo.service.db.exp_list_lang() d['countries'] = odoo.service.db.exp_list_countries() From 9c90cfa44da4a523f30c636f0e9c8d62d6fe113e Mon Sep 17 00:00:00 2001 From: Upeksha Liyanage Date: Tue, 25 Jul 2023 16:20:22 +0530 Subject: [PATCH 2/3] Add web_icon location for the main menu item --- saas/views/saas_view.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/saas/views/saas_view.xml b/saas/views/saas_view.xml index aae1da84..2ab94f36 100644 --- a/saas/views/saas_view.xml +++ b/saas/views/saas_view.xml @@ -44,6 +44,7 @@ Date: Tue, 25 Jul 2023 16:25:58 +0530 Subject: [PATCH 3/3] Remove shop route and fix Saas operator issue --- saas_apps/controllers/main.py | 6 +++--- saas_apps_signup/controllers/auth_signup.py | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/saas_apps/controllers/main.py b/saas_apps/controllers/main.py index 50905bcf..39c912c8 100644 --- a/saas_apps/controllers/main.py +++ b/saas_apps/controllers/main.py @@ -98,6 +98,6 @@ def cart_update_price_page(self, **kw): sale_order._cart_update(product_id=int(product_id), add_qty=1) return {"link": "/shop/cart"} - @route() - def shop(self, **post): - return request.redirect("/price") +# @route() +# def shop(self, **post): +# return request.redirect("/price") diff --git a/saas_apps_signup/controllers/auth_signup.py b/saas_apps_signup/controllers/auth_signup.py index f1b2b121..1e93c126 100644 --- a/saas_apps_signup/controllers/auth_signup.py +++ b/saas_apps_signup/controllers/auth_signup.py @@ -56,6 +56,9 @@ def get_auth_signup_qcontext(self): template = None if template: d["operator_id"] = template._random_ready_operator_id() + else: + d["operator_id"] = request.env.ref("saas_apps.base_template")._random_ready_operator_id() + d['langs'] = odoo.service.db.exp_list_lang() d['countries'] = odoo.service.db.exp_list_countries()