work on sale order report

This commit is contained in:
sonal arora
2020-09-15 09:35:29 +05:30
parent 435ebb1081
commit 29c7894bd9
3 changed files with 29 additions and 13 deletions

View File

@@ -8,6 +8,19 @@
<t t-if="not o or not 'company_id' in o"> <t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"></t> <t t-set="company" t-value="res_company"></t>
</t> </t>
<div class="header">
<div class="row mt32 mb32">
<div class="col-12">
<font color="#fff"><img t-att-src="'data:image/png;base64,%s' % to_text(company.logo)" style="max-height: 250px;"/></font>
</div>
</div>
</div>
<!-- <t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"></t>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"></t>
</t>
<div class="header"> <div class="header">
<div class="row mt32 mb32"> <div class="row mt32 mb32">
<div class="col-6"> <div class="col-6">
@@ -28,7 +41,7 @@
<br/> <br/>
</div> </div>
</div> </div>
</div> </div> -->
<t t-call="web.external_layout"> <t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})"/> <t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})"/>

View File

@@ -10,7 +10,10 @@
</t> </t>
<div class="header"> <div class="header">
<div class="row mt32 mb32"> <div class="row mt32 mb32">
<div class="col-6"> <div class="col-12">
<font color="#fff"><img t-att-src="'data:image/png;base64,%s' % to_text(company.logo)" style="max-height: 250px;"/></font>
</div>
<!-- <div class="col-6">
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % to_text(company.logo)" style="max-height: 50px;" /> <img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % to_text(company.logo)" style="max-height: 50px;" />
</div> </div>
<div class="col-6 text-right" style="font:12px lucida-console,sans-serif !important;"> <div class="col-6 text-right" style="font:12px lucida-console,sans-serif !important;">
@@ -26,7 +29,7 @@
<br/> <br/>
<span t-field="company.partner_id.vat" /> <span t-field="company.partner_id.vat" />
<br/> <br/>
</div> </div> -->
</div> </div>
</div> </div>
<t t-call="web.html_container"/> <t t-call="web.html_container"/>

View File

@@ -21,15 +21,15 @@
<table class="table table-sm"> <table class="table table-sm">
<tr> <tr>
<th style="border:1px solid;width:50%;top:2px"> <th style="border:1px solid;width:50%;top:2px">
<div class="col-4"><strong>Code</strong></div>: <div class="col-6"><strong>Code</strong></div>:
<div class="col-4"><strong>Address</strong></div>: <div class="col-6"><strong>Address</strong></div>:
<div class="col-4"><strong>Telephone Number</strong></div>: <div class="col-6"><strong>Telephone Number</strong></div>:
<div class="col-4"><strong>Account Payee</strong></div>: <div class="col-6"><strong>Account Payee</strong></div>:
</th> </th>
<th style="width:5%;"></th> <th style="width:5%;"></th>
<th style="border:1px solid;width:45%"> <th style="border:1px solid;width:45%">
<div class="col-4"><strong>Receipt Number: </strong></div>:<span t-field="o.name"/><br/> <div class="col-6"><strong>Receipt Number: </strong></div>:<span t-field="o.name"/><br/>
<div class="col-4"><strong>Date: </strong></div>:<span t-field="o.payment_date"/><br/> <div class="col-6"><strong>Date: </strong></div>:<span t-field="o.payment_date"/><br/>
</th> </th>
</tr> </tr>
<tr> <tr>