Odoo Help


This community 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.


Button that trigger logout

Gavin Yap
on 8/24/15, 6:23 AM 463 views


I want to have a button to trigger a session logout? Is this possible?




| 6 4 7
Tbilisi, Georgia
On 8/24/15, 7:17 AM

you can trigger logout by going to the following web link (either using ordinary link or button or whatever you like, you can even type it in address bar when you're logged in and follow the link):


here you can use redirect argument in order to specify where user should be redirected after logout:


here is ordinary html link example:

<a href="/web/session/logout?redirect=/web">Logout</a>

you can use similar approach in button as well... there is multiple possibilities to implement this, adapt it per your requirements.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 8/24/15, 6:23 AM
Seen: 463 times
Last updated: 4/16/16, 7:29 AM