Odoo Help

Welcome!

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.

0

Set developer mode (with code)

By
Odooveloper (by Rui Franco)
on 10/31/15, 6:59 AM 836 views

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.


Any ideas?

0

So, now I know that the "debug" is JavaScript stuff only. There is a variable called "instance.session.debug" that has to be set.

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?

0

Axel Mendoza

--Axel Mendoza--
10318
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 10/31/15, 6:22 PM

To activate developer mode just add ?debug= param to the url. That's what the link to activate developer mode do. That's why a reload is needed. Developer mode also do not minify the assets, css and js source file will be readable after page reload

0

Ray Carnes

--Ray Carnes--
15717
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 10/31/15, 12:49 PM

If you just need the Technical half of the Settings menu, use one of the modules that make that menu persistently available to user with Admin Settings permissions.

https://www.odoo.com/apps?search=technical+menu 

What I want is for every member of a "developer" group to automatically see the "developer" drop down (the one that shows views, etc), without having to go to "about + click on developer mode"

Odooveloper (by Rui Franco)
on 10/31/15, 1:05 PM

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

2 follower(s)

Stats

Asked: 10/31/15, 6:59 AM
Seen: 836 times
Last updated: 11/7/15, 6:40 PM