Files
Odoo-Build/snippets/account.report_invoice_document.replace_product_description.xml
T

23 lines
771 B
XML

<data inherit_id="account.report_invoice_document" priority="50">
<xpath expr="//td[@name='account_invoice_line_name']" position="replace">
<t t-if="line.product_id.type_description">
<td>
<span style="font-weight: bold" t-field="line.product_id.type_description"/>
</td>
</t>
<t t-if="not line.product_id.type_description">
<td>
<span t-field="line.external_name"/>
</td>
</t>
<!---
<xpath expr="//td[@name='account_invoice_line_name']" position="replace">
<td name="td_name">
<span class="o_bold" t-field="line.product_id.name"/><br/>
<span t-field="line.name"/>
</td>
</xpath>
-->
</xpath>
</data>