[FIX] mass_mailing: Create mass mailing without logo

Steps to reproduce the bug:
- Let's consider a company c and a user in this company u.
- Delete the logo of c
- Go to mass mailing > Create

Bug:
Traceback is raised

opw-2927807

closes odoo/odoo#97326

X-original-commit: edda787471d539e9e32ab0dfe4f15235dacec48d
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: stcc-odoo <stcc@odoo.com>
This commit is contained in:
Stefan-Calin Crainiciuc (stcc)
2022-08-03 15:09:41 +02:00
parent 0e0fc0032e
commit 08420e9d84
@@ -113,7 +113,7 @@
<div class="row">
<div class="col-lg-8 pt16 pb16">
<a t-att-href="(company_id.website) or '#'" style="text-decoration:none;float:none;">
<img border="0" t-att-src="image_data_uri(company_id.logo)" style="height:auto;max-width:200px;max-height:48px;" />
<img t-if="company_id.logo" border="0" t-att-src="image_data_uri(company_id.logo)" style="height:auto;max-width:200px;max-height:48px;" />
</a>
</div>
<div class="col-lg-4 text-end o_mail_no_resize">
@@ -154,7 +154,7 @@
<div class="col-lg-4"/>
<div class="col-lg-4 text-center pt16 pb16">
<a t-att-href="(company_id.website) or '#'" style="text-decoration:none;">
<img border="0" t-att-src="image_data_uri(company_id.logo)" style="height:auto;max-width:200px;max-height:48px;width:auto"/>
<img t-if="company_id.logo" border="0" t-att-src="image_data_uri(company_id.logo)" style="height:auto;max-width:200px;max-height:48px;width:auto"/>
</a>
</div>
<div class="col-lg-4 text-end"/>