Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
qweb and cls evaluation
Can someone explain how what #{cls}" means in the qweb tempalting as in this example (extract from the official qweb site):
-----------------
div t-name="example_template" t-attf-class="base #{cls}"
-----------------
what does cls means (class?) but how the evalution is done agains a context like this:
------------
{ "class1": "foo", "title": "Random Title", ...
------------
Thanks,
Aftre some tests, I think that lline in the example from the qweb site is mistaken. In fact this line:
-----------------
div t-name="example_template" t-attf-class="base #{cls}"
-----------------
Should be:
-----------------
div t-name="example_template" t-attf-class="base #{class1}"
-----------------
hope tis helpes someone having the same question.
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.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 3/31/14, 8:28 AM |
Seen: 1184 times |
Last updated: 3/16/15, 8:10 AM |