Odoo Help


Document type available as variable in template

on 2/11/16, 8:43 AM 475 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?


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 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: 475 times
Last updated: 2/11/16, 10:22 AM