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

fix portal my instances #777

Open
wants to merge 1 commit into
base: 11.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
4 changes: 2 additions & 2 deletions saas_portal_demo/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def product(self, product, category='', search='', **kwargs):
class WebsiteAccount(CustomerPortal):

@http.route()
def account(self, redirect=None, **post):
def home(self, **kw):
""" Add saas instance documents to main account page """
response = super(WebsiteAccount, self).account(redirect=redirect, **post)
response = super(WebsiteAccount, self).home(**kw)
partner = request.env.user.partner_id

SaasPortalClient = request.env['saas_portal.client']
Expand Down
4 changes: 2 additions & 2 deletions saas_portal_demo/views/saas_portal_demo_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
<t t-foreach="instances" t-as="instance">
<tr>
<td>
<a t-attf-href="{{instance._request_url('/saas_server/edit_database')[0]}}"><t t-esc="instance.name"/></a>
<a t-attf-href="{{instance._request_url('/saas_server/edit_database')}}"><t t-esc="instance.name"/></a>
</td>
<td><span t-field="instances.expiration_datetime"/></td>
<td><span t-field="instance.expiration_datetime"/></td>
</tr>
</t>
</table>
Expand Down