[FIX] account: display invoice lines in kanban

The display_type is always filled now, valid values for non display-only
purpose are `product`, `payment_term`, `tax` or `cogs`

Follwup on d8d47f9ff8
task-2956509

X-original-commit: 7528c07d0f1ea6c4c8872ec66a5609b264300908
Part-of: odoo/odoo#101994
This commit is contained in:
william
2022-10-03 21:22:58 +02:00
parent c3e7fa0e04
commit 5fddd22edd
+1 -1
View File
@@ -930,7 +930,7 @@
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_card oe_kanban_global_click ps-0 pe-0 {{ record.display_type.raw_value ? 'o_is_' + record.display_type.raw_value : '' }}">
<t t-if="!record.display_type.raw_value">
<t t-if="!['line_note', 'line_section'].includes(record.display_type.raw_value)">
<div class="row g-0">
<div class="col-2 pe-3">
<img t-att-src="kanban_image('product.product', 'image_128', record.product_id.raw_value)" t-att-title="record.product_id.value" t-att-alt="record.product_id.value" style="max-width: 100%;"/>