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 define global variable in Qweb report?

Mohammed Khamis
on 2/12/15, 4:21 AM 1,812 views

please I would like to help me in this issue urgent please ,

How to define globle variable in Qweb report because when i access any variabl I defined it out loop i didn't get any change when i print this variabl out loop 



Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 2/12/15, 4:51 AM

You could use t-set attribute

<t t-set= "user_name" t-value="user.name" > </t>
<p> Hello, <t t-esc = "user_name"/> </p>

Refer Odoo 8 documentation for Q-web template:  https://www.odoo.com/documentation/8.0/reference/qweb.html#setting-variables

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

1 follower(s)


Asked: 2/12/15, 4:21 AM
Seen: 1812 times
Last updated: 3/16/15, 8:10 AM