March 2018
Beginner to intermediate
474 pages
12h 3m
English
Much of the power of QWeb allows for you to conditionally show information depending on various fields and information within the document. In this case, Odoo is looking at the status of the order to determine whether the template should have a label for Quote or for Sales Order. Let's take a close look at the syntax so we can understand exactly what it means.
If you don't understand at least some basic XML, now would be a good time to look at some of the available resources we have listed in the Appendix or do a simple Google search on an XML tutorial:
<span t-if="o.state not in ['draft','sent']">Sales Order # </span> <span t-if="o.state in ['draft','sent']">Quotation #:</span>
You will ...
Read now
Unlock full access