<openerp>
<data>
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
<xpath expr="//span[@t-field='t.amount']" position="after">
<span t-field="t.note"/>
</xpath>
</template>
</data>
</openerp>
I added a field to the account report inside the tax table. but how can I make the tax table visible only if there is a note field and hide if the note is empty.
I am trying to do something with t-if, but my goal is to show the tax table so that it does not hide it when the note field is not empy. is there any type of t-ifnot?
<xpath expr="//span[@t-field='t.amount']/../../../../thead/tr" position="replace">
<th t-if="o.notes"
</xpath>
user7897726
source
share