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.


How to enable debug mode in "website_" modules?

on 7/19/14, 6:34 AM 1,550 views

How to enable debug mode in webiste_ module?

Is there any solution for that situation because I just want to debug.

Thank in advance!



| 6 5 8


On 4/7/15, 6:39 AM

Just add to the end of URL:


I can't see any effect. How should that work?

Ermin Trevisan
on 4/7/15, 7:52 AM

If you look at JS in Developer Tools of your Browser, its not compressed.

on 4/7/15, 8:03 AM

Now I see, thanks.

Ermin Trevisan
on 4/7/15, 11:29 AM
On 7/20/14, 11:59 PM

I found the fastway to do that. enable debug mode default. 

Notice: Should use only dev mode :D


def render_tag_call_assets(self, element, template_attributes, generated_attributes, qwebcontext):

        """ This special 't-call' tag can be used in order to aggregate/minify javascript and css assets"""
        name = template_attributes['call-assets']

        # Backward compatibility hack for manifest usage
        qwebcontext['manifest_list'] = openerp.addons.web.controllers.main.manifest_list

        d = qwebcontext.copy()
        d.context['inherit_branding'] = False
        content = self.render_tag_call(
            element, {'call': name}, generated_attributes, d)
        bundle = AssetsBundle(name, html=content)
        css = self.get_attr_bool(template_attributes.get('css'), default=True)
        js = self.get_attr_bool(template_attributes.get('js'), default=True)
        # return bundle.to_html(css=css, js=js, debug=bool(qwebcontext.get('debug')))
        return bundle.to_html(css=css, js=js, debug=1)

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)


Asked: 7/19/14, 6:34 AM
Seen: 1550 times
Last updated: 7/6/15, 7:55 AM