Odoo Help

Welcome!

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.

0

Document type available as variable in template

By
Andrew
on 2/11/16, 8:43 AM 383 views

Hi,

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>
</t>


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

Thanks!

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)

Stats

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