I customized the "external_layout_header" template from the "report" module in a custom module that modifies the Sales Quote/Order layout. I didn't realize that this template is also used for Purchase RFQs/Orders. Now I'm getting errors on the Purchase Order layout, because I moved a field from the sale.order object up into the header template, and this field doesn't exist in the purchase.order object. Is there any way that I can detect the document/object type with a t-function? Something along the lines of <t t-if="o = 'sale.order'"> ...?
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
|Asked: 1/14/15, 12:21 PM|
|Seen: 894 times|
|Last updated: 3/16/15, 8:10 AM|