Fix for DlvLogo/OcLogo

develop
Andreas Osim 2020-05-07 08:22:28 +02:00
parent 0599c82462
commit c2f176953b
1 changed files with 8 additions and 4 deletions

View File

@ -103,11 +103,13 @@
</p>
</div>
<div class="col-xs-5 text-right">
<t t-if="(DlvRetailLogo or DlvLogo) and o._name == 'stock.picking' and is_picking">
<!-- <t t-if="(DlvRetailLogo or DlvLogo) and o._name == 'stock.picking' and is_picking"> -->
<!-- <t t-elif="OcLogo and not (data or {}).get('tz_report_production', False) and o.state not in ['draft','sent']"> -->
<t t-if="DlvRetailLogo or DlvLogo">
<img t-if="o.sale_id.partner_id.retail_partner_id.image" t-att-src="'data:image/png;base64,%s' % o.sale_id.partner_id.retail_partner_id.image.decode()"
style="max-height: 85px;"/>
</t>
<t t-elif="OcLogo and not (data or {}).get('tz_report_production', False) and o.state not in ['draft','sent']">
<t t-elif="OcLogo">
<img t-if="o.partner_id.retail_partner_id.image" t-att-src="'data:image/png;base64,%s' % o.partner_id.retail_partner_id.image.decode()"
style="max-height: 85px;"/>
</t>
@ -128,7 +130,9 @@
<div class="row">
<hr class="red-line-1"/>
</div>
<t t-if="(DlvRetailLogo or DlvLogo) and o._name == 'stock.picking' and is_picking">
<!-- <t t-if="(DlvRetailLogo or DlvLogo) and o._name == 'stock.picking' and is_picking"> -->
<!-- <t t-elif="OcLogo and not (data or {}).get('tz_report_production', False) and o.state not in ['draft','sent']"> -->
<t t-if="DlvRetailLogo or DlvLogo">
<div class="row" style="padding-left:0;">
<div class="col-xs-12 text-center">
<strong>
@ -150,7 +154,7 @@
</div>
</div>
</t>
<t t-elif="OcLogo and not (data or {}).get('tz_report_production', False) and o.state not in ['draft','sent']">
<t t-elif="OcLogo">
<div class="row" style="padding-left:0;">
<div class="col-xs-12 text-center">
<strong>