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,
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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.
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.
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
Thank you so much for your help, I am not code savy so my workaround is what i will stay with.
Cheers
Hi Graham, could you please explain your steps doing that workaround?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jul 23
|
860 | ||
odoo application update
Solved
|
|
5
Nov 22
|
2045 | |
|
0
Jul 22
|
1696 | ||
|
0
Mar 22
|
1791 | ||
|
0
Feb 22
|
1392 |
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.