Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions oktn_custom_invoice_report/reports/account_invoice_report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,33 @@
priority="99"
>
<span t-field="line.name" position="replace">
<t t-if="o.move_type in ('out_invoice','out_refund')">
<t t-if="o.move_type in ('out_invoice', 'out_refund')">
<t
t-set="product_name_es"
t-value="line.product_id.with_context(lang=user.lang).display_name"
t-set="product_name"
t-value="line.product_id.with_context(lang=user.lang).display_name if line.product_id else ''"
/>

<t
t-if="line.product_id and line.product_id.no_product_description_to_sale_invoice_lines and product_name_es in line.name"
t-if="
line.product_id
and line.product_id.no_product_description_to_sale_invoice_lines
and line.name
and product_name
and product_name in line.name
"
>
<span
t-esc="line.name.replace(product_name_es + '\n', '', 1)"
t-esc="line.name.replace(product_name + '\n', '', 1)"
style="white-space: pre-line;"
/>
</t>

<t t-else="">
<span t-if="line.name" t-field="line.name" t-options="{'widget': 'text'}" />
</t>
</t>
<t t-if="o.move_type not in ('out_invoice','out_refund')">

<t t-if="o.move_type not in ('out_invoice', 'out_refund')">
<span t-if="line.name" t-field="line.name" t-options="{'widget': 'text'}" />
</t>
</span>
Expand Down
Loading