Can someone tell me how to redirect after logging into Odoo? So right now when soemone logs in to Odoo after that it takes them to the backend on the Odoo. I have created a webiste page in Odoo so I need to redirect them to that page instead of the backend. Please help
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
2
Trả lời
398
Lượt xem
Hi Swaraj,
Can I know where do I access this controller from? or where do I edit the controller? Where can i locate it?
By default when someone logins to odoo this controller redirect to backend menus to change that you have to inherit this corresponding route and change "self._login_redirect(uid, redirect=redirect)" to "your_url"
@http.route('/web/login', type='http', auth="none")
def web_login(self, redirect=None, **kw):
....rest of code
if request.httprequest.method == 'POST':
try:
uid = request.session.authenticate(request.db, request.params['login'], request.params['password'])
request.params['login_success'] = True
return request.redirect(self._login_redirect(uid, redirect=redirect))
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký