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.
Here's what I'm trying to do: if a user belongs to a certain group, then, the developer mode is activated.
But I can't get to understand which variable I should set. I don't want to reload the page but rather set some variable so that, in the next reload, the developer mode is activated.
Thus, the problem has become how to get the user's permissions using js. When the user logs in, I want to see if he is part of a certain group and, if so, set the instance.session.debug to true.
I'm building a module to help developers and this would be a really nice fature.
Alternatively, python could reload the page in some way, passing the "debug" parametre into the URL. Is this possible?
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: 10/31/15, 6:59 AM|
|Seen: 1401 times|
|Last updated: 11/7/15, 6:40 PM|