[FIX] base: on partner kanban, show company default image if contact has none

For contract of type 'Company' which have no image set, we should display a
specific default 'company' placeholder image instead of default placeholder.
This allows to easily identify which records are companies.

This was already the case up to commit 6153d65664

OPW-2067475

closes odoo/odoo#36783

X-original-commit: 42c08846296d86fb3196f430eec45dd39cf1a8f5
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Xavier ALT
2019-09-12 13:20:52 +00:00
committed by fw-bot
parent 4b750f3a3c
commit 0dccd432f1
+1 -1
View File
@@ -515,7 +515,7 @@
<img class="o_kanban_image_inner_pic" t-if="record.parent_id.raw_value" t-att-alt="record.parent_id.value" t-att-src="kanban_image('res.partner', 'image_small', record.parent_id.raw_value)"/>
</div>
</t>
<t t-elif="record.is_company.raw_value">
<t t-elif="record.image_small.raw_value &amp;&amp; record.is_company.raw_value">
<img class="o_kanban_image" t-att-src="kanban_image('res.partner', 'image_small', record.id.raw_value)" t-att-alt="record.display_name"/>
</t>
<t t-else="">