[FIX] base: fix company logo placeholder
- fix condition to correctly display company logo placeholder - use avatar_grey on the "Contacts & Addresses" as white on white is not visible - use `cover` to avoid excessive zoom on mobile closes #38001 closes odoo/odoo#38319 X-original-commit: 1210cb70bec421936c9d332b1347797bc83845cf Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
@@ -167,6 +167,7 @@
|
||||
min-height: $o-kanban-image-width;
|
||||
align-self: baseline;
|
||||
background: {
|
||||
size: cover;
|
||||
repeat: no-repeat;
|
||||
position: center;
|
||||
}
|
||||
|
||||
@@ -323,7 +323,7 @@
|
||||
<img alt="Invoice" t-if="record.type.raw_value === 'invoice'" t-att-src='_s + "/base/static/img/money.png"'/>
|
||||
<t t-if="record.type.raw_value !== 'invoice' && record.type.raw_value !== 'delivery'">
|
||||
<img alt="Logo" t-if="record.is_company.raw_value === true" t-att-src='_s + "/base/static/img/company_image.png"'/>
|
||||
<img alt="Avatar" t-if="record.is_company.raw_value === false" t-att-src='_s + "/base/static/img/avatar.png"'/>
|
||||
<img alt="Avatar" t-if="record.is_company.raw_value === false" t-att-src='_s + "/base/static/img/avatar_grey.png"'/>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
@@ -524,7 +524,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_128', record.parent_id.raw_value)"/>
|
||||
</div>
|
||||
</t>
|
||||
<t t-elif="record.image_128.raw_value">
|
||||
<t t-else="">
|
||||
<t t-set="placeholder" t-value="'/base/static/img/company_image.png'"/>
|
||||
<div class="o_kanban_image_fill_left o_kanban_image_full" t-attf-style="background-image: url(#{kanban_image('res.partner', 'image_128', record.id.raw_value, placeholder)})" role="img"/>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user