Odoo Help


Document type available as variable in template

on 2/11/16, 8:43 AM 801 views


I am working on a custom header for reports. In the header I would like to include a title based on what kind of document (purchase order, invoice, quotation, etc.) is being generated. My plan is to modify the view external_layout_header with something like this:

<t t-if="condition">
  <h2>Purchase Order</h2>

However, I have no idea what this condition should be. Can somebody help me out?


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

1 follower(s)


Asked: 2/11/16, 8:43 AM
Seen: 801 times
Last updated: 2/11/16, 10:22 AM