Odoo Help

2

0
2 Відповіді
2
Аватар

Andreas Tolstov Німеччина

--Andreas Tolstov--

1194
| 6 6 10
Hamburg, Німеччина
--Andreas Tolstov--

hi

Andreas Tolstov Німеччина
07.04.15, 06:39

Just add to the end of URL:

?debug 
3 Коментар
twanda AG, Ermin Trevisan Швейцарія
07.04.15, 07:52

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

Andreas Tolstov Німеччина
07.04.15, 08:03

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

twanda AG, Ermin Trevisan Швейцарія
07.04.15, 11:29

Now I see, thanks.

1
sepdau В'єтнам
20.07.14, 23:59

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

Notice: Should use only dev mode :D

openerp/addons/base/ir/ir_qweb.py

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)

Задайте запитання
Автор
Мітки
Продовжити інформувати
2 підписник(и)
Про цю спільноту

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