Odoo Help


Check user settings in template tags

Mohsen Javid
on 5/10/16, 10:55 AM 786 views

Hi i applied a field in users preferences and i want check this field value as below:



        <template id="jalali_date_view" inherit_id="web.assets_backend">

            <xpath expr="//script[@src='/web/static/src/js/framework/formats.js']" position="replace">

                <t t-if="use_jdv">

                    <script type="text/javascript" src="/jalali_date_view/static/src/js/formats.js"></script>






How can i check settings fields of current user?

How can i passing a variable to all QWeb templates?(similar context processors in Django)

How can i get current user?

How can i debug and watch current states of variables in server side?(i used t-debug="pdb" but not worked)

Thanks very very very much

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

2 follower(s)


Asked: 5/10/16, 10:55 AM
Seen: 786 times
Last updated: 8/5/16, 9:31 AM