Skip to Content
Menu
This question has been flagged
3 Replies
3191 Views

When clients "public user's" login to our odoo site they all land at the https://domain.com/my page which is the default landing page for public user login, where can i define a specific page for this?  the only client we have login to our site are using our elearning /slides module and i want them to land at the "/slides" page to see their courses, 

Avatar
Discard
Author

I found a workaround for now, I used the website builder to edit the "/my" page and added all the links that will direct the clients to the slides section.

Author Best Answer

Hi Dindin, I ended up using the webpage editor to edit the /my page and added a few links one of them was the My courses button.

you can see here but you have to create a login account if you want to see the changes.

Cheers
https://www.p3permaculture.ca/my

Avatar
Discard

I just logged in, it WORKED! and that's cool! :)

Anyway, what BLOCK did you use in the editor?

I tried several times (customizing the /my page) but whenever I save it, an error message appeared.

Nice to know you.

Best Answer

Hello @Graham,

One way to do so is to extend the login controller which is responsible for redirecting user to proper page on successful login.

this controller can be found in web module: /web/controllers/main.py inside Home class.

@http.route('/web/login', type='http', auth="none", sitemap=False, csrf=False)
def web_login(self, redirect=None, **kw):

you can add a condition here that after successful login if the user is a public user redirect to /your-desired-url else let the original workflow continue.

Hope this helps.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard
Author

Thank you so much for your help, I am not code savy so my workaround is what i will stay with.
Cheers

Best Answer

Hi Graham, could you please explain your steps doing that workaround?

 

Avatar
Discard
Related Posts Replies Views Activity
1
Jul 23
860
5
Nov 22
2045
0
Jul 22
1696
0
Mar 22
1791
0
Feb 22
1392