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.

2

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

By
Gopakumar N G
on 9/25/13, 4:25 AM 2,825 views

The Question has been closed

by
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

kaynis
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
4

Gopakumar N G

--Gopakumar N G--
1198
| 5 3 7
Cochin, India
--Gopakumar N G--

Senior Software Engineer at BroadTech IT Solutions 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"/>
    </t>

</t>
</templates>

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': [],
    'test':[],
    '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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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