I need to change the attribute in a field in a report based on a condition. to clarify, I'm inheriting a report and I need to change the attribute in the field where I call the custom header.
See code (incomplete but enough):
the following code I made doesn't work:
<template id="report_saleorder_document" inherit_id="sale.report_saleorder_document">
<xpath expr=".//t[@t-call='report.external_layout']" position="attributes">
<attribute t-if="corso_id" name="t-call">na_aurema_hr.corsi_external_layout</attribute>
Can someone help me with the if clause in the attribute?
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: 4/26/16, 8:01 AM|
|Seen: 160 times|
|Last updated: 4/26/16, 8:11 AM|