Odoo Help


How to deactivate developer mode in OpenERP 6.1 for all users except admin ? [Closed]

Gopakumar N G
on 9/25/13, 4:25 AM 3,536 views

The Question has been closed

Gopakumar N G
on 11/15/2013 05:41:47

How can I disable the debugging mode or developer mode for users other than admin?

groupd =base.group_system to the field in web module

on 9/25/13, 4:35 AM

@kaynis how to add this. Can you please explain?

Gopakumar N G
on 9/25/13, 4:38 AM

Gopakumar N G

--Gopakumar N G--
| 5 4 7
Cochin, India
--Gopakumar N G--

Project Lead at Bizweaver Technologies Pvt. Ltd.

Gopakumar N G
On 9/25/13, 5:46 AM

Create a module and create an xml file named base.xml in the following path disable_developer_mode/static/src/xml/base.xml (where disable_developer_mode is the new module created) and add the following to the base.xml file.

<templates id="base.template" xml:space="preserve">

<t t-extend="ViewManagerAction">
    <t t-jquery="select.oe_debug_view" t-operation="replace">
        <select t-if="self.session.uid === 1 and self.session.debug" class="oe_debug_view"/>


Here self.session.uid === 1 is given where 1 is the id of the admin, if it is different in your system check the database and edit it. Add the base.xml file in the disable_developer_mode's __openerp__.py file as the folowing

    'name': 'Disable Developer Mode',
    'version': '0.1',
    'category': 'Others',
    'sequence': 20,
    'summary': 'Disable Developer Mode',
    'description': """
Disable Developer Mode
    'author': 'Gopakumar N G',
    'website': 'http://zbeanztech.com/blogs/nggopakumar',
    'images': [],
    'depends': ['base'],
    'data': [],
    'demo': [],
    'installable': True,
    'application': False,
    'js': [],
    'css' : [],
    'qweb' : ["static/src/xml/base.xml"]

Update your module and restart the server, now the debugging drop-down box will not be shown for all users except admin.

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 9/25/13, 4:25 AM
Seen: 3536 times
Last updated: 3/16/15, 8:10 AM