Skip to content
Permalink
Browse files

🛀 there will be a separate module for creating a database by reference

  • Loading branch information...
trojikman committed Jun 18, 2019
1 parent e843be7 commit 7015e2e891734ba23627dc400d95509bbe3b2de5
Showing with 0 additions and 9 deletions.
  1. +0 −9 saas/controllers/main.py
@@ -14,12 +14,3 @@ def auth_to_build(self, build_id=None):
return False
build_url = request.env['saas.db'].browse(build_id).get_url() + '/auth_quick/login?build_login=admin'
return build_redirection(build_url)

@route('/saas/<model("saas.template"):template_id>/create-fast-build', type='http', auth='public')
def create_fast_build(self, template_id, **kwargs):
if not kwargs:
kwargs = {}
template_operator_id = template_id.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, build_login='admin')

0 comments on commit 7015e2e

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