Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update auth_signup.py to fix #126 #132

Open
wants to merge 5 commits into
base: 14.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions saas/views/saas_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

<!-- Menu items-->
<menuitem name="SaaS"
web_icon="saas,static/description/icon.png"
id="saas_main_menu"/>

<menuitem name="Operators"
Expand Down
6 changes: 3 additions & 3 deletions saas_apps/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 2 additions & 0 deletions saas_apps_signup/controllers/auth_signup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down