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 | etc.
I'm working on a local odoo 8.
I have a website shop that it is not available for public. By the business policies the customer have to sign a contract and then the administrator provide user and password for the customer to be able to shop in our website.
Using a security rule I'm hiding the shop tab for a public users and it is available back just for registered users.
When a customer log in successfully the system automatically redirect them to the portal. I would like to know if there is a way to modify this in order to redirect our customers to the shop automatically after the log in.
You can also update the view "web.login" ...
<input type="hidden" name="redirect" t-att-value="redirect"/>
<input type="hidden" name="redirect" t-att-value="redirect + '&redirect=/shop' "/>
<input type="hidden" name="redirect" t-att-value="'%s%s' % (redirect or '', (redirect and '&' or '?' ) + 'redirect=/shop' )"/>
Keeping the first redirect is not useless ! ...
/web/login and /web allow redirect as param.
So if a real redirect: (session expired eg)
/web?#model=res.partner&active_id=1&redirect=/shop --> no redirect (#)
/web?redirect=/shop --> redirected to /shop
This works great for web.login but doesn't work for auth_signup.reset_password. What is the syntax or method to change the redirect when someone confirms their account via creating a password?
When you invite someone and they confirm their account, they are sent to the auth_signup.reset_password page to create a password. Then they are redirected to the portal instead of any website page.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/5/15, 7:41 PM|
|Seen: 5829 times|
|Last updated: 10/25/15, 11:40 PM|