rework report_templates

develop
Andreas Osim 2019-11-18 17:49:24 +01:00
parent 7b43ebaecb
commit 09e6900afb
1 changed files with 28 additions and 4 deletions

View File

@ -112,7 +112,29 @@
<div class="row">
<hr class="red-line-1"/>
</div>
<t t-if="(DlvLogo and o._name == 'stock.picking' and is_picking) or (OcLogo and not (data or {}).get('tz_report_production', False) and o.state not in ['draft','sent'])">
<t t-if="DlvLogo and o._name == 'stock.picking' and is_picking">
<div class="row" style="padding-left:0;">
<div class="col-xs-12 text-center">
<strong>
<span t-esc="o.sale_id.partner_id.retail_partner_id.name"/>
&#183;
<span t-esc="o.sale_id.partner_id.retail_partner_id.street"/>
&#183;
<span t-esc="o.sale_id.partner_id.retail_partner_id.zip"/>
<span t-esc="o.sale_id.partner_id.retail_partner_id.city"/>
&#183;
<span t-esc="o.sale_id.partner_id.retail_partner_id.phone"/>
&#183;
<span t-esc="o.sale_id.partner_id.retail_partner_id.email"/>
<t t-if ="o.sale_id.partner_id.retail_partner_id.website">
&#183;
<span t-esc="o.sale_id.partner_id.retail_partner_id.website.replace('http://', '').replace('https://', '')"/>
</t>
</strong>
</div>
</div>
</t>
<t t-if="OcLogo and not (data or {}).get('tz_report_production', False) and o.state not in ['draft','sent']">
<div class="row" style="padding-left:0;">
<div class="col-xs-12 text-center">
<strong>
@ -252,9 +274,11 @@
<br/>
</div>
<div>
<strong>
<span t-esc="cmpy.website.replace('http://', '').replace('https://', '')"/>
</strong>
<t t-if ="cmpy.website">
<strong>
<span t-esc="cmpy.website.replace('http://', '').replace('https://', '')"/>
</strong>
</t>
</div>
</template>