Skip to content
Permalink
Browse files

🚑 website compatibility

  • Loading branch information...
trojikman committed Jul 27, 2019
1 parent 975e57b commit 1ae31d96bb6f9f87b63f941b4e2f7ff1414cb3a3
Showing with 5 additions and 3 deletions.
  1. +5 −3 saas_public/controllers/saas_public.py
@@ -5,12 +5,14 @@


class SaaSPublicController(Controller):
@route('/saas_public/<model("saas.template"):template_id>/create-fast-build', type='http', auth='public')
@route('/saas_public/<int:template_id>/create-fast-build', type='http', auth='public')
def create_fast_build(self, template_id, **kwargs):
if not kwargs:
kwargs = {}
if template_id and template_id.sudo().public_access:
template_operator_id = template_id.sudo().operator_ids.random_ready_operator()
if template_id:
template = request.env['saas.template'].browse(template_id)
if template.sudo().public_access:
template_operator_id = template.sudo().operator_ids.random_ready_operator()
build = template_operator_id.sudo().create_db(kwargs, with_delay=False)
build_url = build.get_url()
return request.env['auth_quick_master.token'].sudo().redirect_with_token(build_url, build.id,

0 comments on commit 1ae31d9

Please sign in to comment.
You can’t perform that action at this time.