Skip to content

Conversation

@yelizariev
Copy link
Contributor

No description provided.

plan = Plan.browse(int(plan_id))
base_saas_domain = plan.server_id.local_host
else:
base_saas_domain = 'depends on the plan'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

if plan_id:
Plan = request.env['saas_portal.plan'].sudo()
plan = Plan.browse(int(plan_id))
base_saas_domain = plan.server_id.local_host
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it's localhost?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why - it should be the url of SaaS server (e.g. odoo-11.smb.ngalaba.com). It may be the name of saas_portal.server record either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants