Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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?
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/26/16, 8:01 AM|
|Seen: 295 times|
|Last updated: 4/26/16, 8:11 AM|