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">
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
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
|Asked: 5/10/16, 10:55 AM|
|Seen: 323 times|
|Last updated: 8/5/16, 9:31 AM|