Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions custom_reports_vmter/report/alq_mrp_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
<div class="header">
<div class="row">
<div class="col-4">
<img src="/custom_reports_vmter/static/src/img/logo_left.png"
style="height: 100px;"/>
<img t-if="company.logo"
t-att-src="image_data_uri(company.logo)"
style="height: 100px; width: auto;"
alt="Logo"/>
<div t-if="not company.logo" style="font-size: 20px; font-weight: bold;">
<span t-field="company.name"/>
</div>
</div>
</div>
<div class="row">
Expand Down
9 changes: 7 additions & 2 deletions custom_reports_vmter/report/report_account_invoice_alq.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@
-->
</div>
<div class="col-6 text-right">
<img src="/custom_reports_vmter/static/src/img/logo_left.png"
style="height: 100px;"/>
<img t-if="o.company_id.logo"
t-att-src="image_data_uri(o.company_id.logo)"
style="max-height: 100px; width: auto;"
alt="Logo"/>
<div t-if="not o.company_id.logo" style="font-size: 20px; font-weight: bold;">
<span t-field="o.company_id.name"/>
</div>
</div>
</div>

Expand Down
18 changes: 14 additions & 4 deletions custom_reports_vmter/report/report_l10_es_aeat_mod347.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@
<div class="header" style="font-size: 12px;">
<div class="row mt16 mb16">
<div class="col-12 text-right">
<img src="/custom_reports_vmter/static/src/img/logo_left.png"
style="height: 100px;"/>
<img t-if="company.logo"
t-att-src="image_data_uri(company.logo)"
style="height: 100px; width: auto;"
alt="Logo"/>
<div t-if="not company.logo" style="font-size: 20px; font-weight: bold;">
<span t-field="company.name"/>
</div>
</div>
</div>
</div>
Expand All @@ -25,8 +30,13 @@
<spam>&amp;nbsp;</spam>
</div>
<div class="col-6 text-right">
<img src="/custom_reports_vmter/static/src/img/logo_left.png"
style="height: 100px;"/>
<img t-if="o.partner_id.company_id.logo"
t-att-src="image_data_uri(o.partner_id.company_id.logo)"
style="height: 100px; width: auto;"
alt="Logo"/>
<div t-if="not o.partner_id.company_id.logo" style="font-size: 20px; font-weight: bold;">
<span t-field="o.partner_id.company_id.name"/>
</div>
</div>
</div>
<div class="row mt16 mb16">
Expand Down
8 changes: 7 additions & 1 deletion custom_reports_vmter/report/report_packing_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@
-->
</div>
<div class="col-6 text-right">
<img src="/custom_reports_vmter/static/src/img/logo_left.png" style="height: 100px;"/>
<img t-if="o.company_id.logo"
t-att-src="image_data_uri(o.company_id.logo)"
style="height: 100px; width: auto;"
alt="Logo"/>
<div t-if="not o.company_id.logo" style="font-size: 20px; font-weight: bold;">
<span t-field="o.company_id.name"/>
</div>
</div>
</div>
<div class="row mt16 mb16">
Expand Down
8 changes: 7 additions & 1 deletion custom_reports_vmter/report/report_picking_alq.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@
-->
</div>
<div class="col-6 text-right">
<img src="/custom_reports_vmter/static/src/img/logo_left.png" style="height: 100px;"/>
<img t-if="o.company_id.logo"
t-att-src="image_data_uri(o.company_id.logo)"
style="height: 100px; width: auto;"
alt="Logo"/>
<div t-if="not o.company_id.logo" style="font-size: 20px; font-weight: bold;">
<span t-field="o.company_id.name"/>
</div>
</div>
</div>
<div class="row mt16 mb16">
Expand Down
9 changes: 7 additions & 2 deletions custom_reports_vmter/report/report_purchase_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@
</div>
</div>
<div class="col-6 text-right">
<img src="/custom_reports_vmter/static/src/img/logo_left.png"
style="height: 100px;"/>
<img t-if="o.company_id.logo"
t-att-src="image_data_uri(o.company_id.logo)"
style="height: 100px; width: auto;"
alt="Logo"/>
<div t-if="not o.company_id.logo" style="font-size: 20px; font-weight: bold;">
<span t-field="o.company_id.name"/>
</div>
</div>
</div>
<div class="row mt16 mb16">
Expand Down
9 changes: 7 additions & 2 deletions custom_reports_vmter/report/report_purchase_quotation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@
</div>
</div>
<div class="col-6 text-right">
<img src="/custom_reports_vmter/static/src/img/logo_left.png"
style="height: 100px;"/>
<img t-if="o.company_id.logo"
t-att-src="image_data_uri(o.company_id.logo)"
style="height: 100px; width: auto;"
alt="Logo"/>
<div t-if="not o.company_id.logo" style="font-size: 20px; font-weight: bold;">
<span t-field="o.company_id.name"/>
</div>
</div>
</div>
<div class="row mt16 mb16">
Expand Down
9 changes: 7 additions & 2 deletions custom_reports_vmter/report/report_sale_order_alq.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@
</div>
</div>
<div class="col-6 text-right">
<img src="/custom_reports_vmter/static/src/img/logo_left.png"
style="height: 100px;"/>
<img t-if="doc.company_id.logo"
t-att-src="image_data_uri(doc.company_id.logo)"
style="height: 100px; width: auto;"
alt="Logo"/>
<div t-if="not doc.company_id.logo" style="font-size: 20px; font-weight: bold;">
<span t-field="doc.company_id.name"/>
</div>
</div>
</div>
<div class="row mt16 mb16">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
<div class="header" style="font-size: 13px;">
<div class="row">
<div class="col-xs-4">
<!--
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % to_text(company.logo)"
style="max-height: 50px;"/>
-->
<img src="/custom_reports_vmter/static/src/img/logo_left.png"
style="height: 50px;"/>
<img t-if="company.logo"
t-att-src="image_data_uri(company.logo)"
style="height: 50px; width: auto;"
alt="Logo"/>
<div t-if="not company.logo" style="font-size: 20px; font-weight: bold;">
<span t-field="company.name"/>
</div>
</div>
<div class="col-xs-8 text-right" style="margin-right:0px">
<img src="/custom_reports_vmter/static/src/img/logo_right.jpg"
Expand Down