Hello,
I try to add condition in all td element of first table in report sale_order. For this i use xpath.
But, just the first td element is targeting. Why ? It's bug ? This error come to qweb ? wkhtmltopdf ?
My code
<template id="report_so_no_print_lines" inherit_id="sale.report_saleorder_document"> <xpath expr="//table[1]/tbody/tr/td" position="attributes"> <attribute name="t-if">l.product_id.product_tmpl_id.no_print_in_invoice != True</attribute> </xpath> </template>
I try with other element, other position for test and with this code :
<xpath expr="//span" position="replace">
<span>COUCOU</span>
</xpath>
And I've the same problem, just the first element span is replace.
Please, can you help me ?