work on sale report

This commit is contained in:
sonal arora
2020-09-15 11:43:15 +05:30
parent f0763165ec
commit 14fb3d9590

View File

@@ -13,24 +13,6 @@
<div class="col-12"> <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> <font color="#fff"><img t-att-src="'data:image/png;base64,%s' % to_text(company.logo)" style="max-height: 250px;"/></font>
</div> </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;"/>
</div>
<div class="col-6 text-right" style="font:12px lucida-console,sans-serif !important;">
<span t-field="company.partner_id"/>
<br/>
<span t-field="company.partner_id.street"/>
<br/>
<span t-field="company.partner_id.street2"/>
<br/>
<span t-field="company.partner_id.city"/>
<br/>
<span t-field="company.partner_id.country_id"/>
<br/>
<span t-field="company.partner_id.vat"/>
<br/>
</div> -->
</div> </div>
</div> </div>
@@ -59,43 +41,42 @@
</div> </div>
<div class="col-4"> <div class="col-4">
</div> </div>
<div class="col-4" style="font:15px lucida-console,sans-serif !important; ">
<div class="col-4" style="font:15px lucida-console,sans-serif !important; "> <span style="background-color:#3498DB;">Delivery Address</span>
<span style="background-color:#3498DB;">Delivery Address</span> <div t-if="o.move_lines and o.move_lines[0].partner_id and o.move_lines[0].partner_id.id != o.partner_id.id">
<div t-if="o.move_lines and o.move_lines[0].partner_id and o.move_lines[0].partner_id.id != o.partner_id.id"> <div>
<div> <div t-field="o.move_lines[0].partner_id"
<div t-field="o.move_lines[0].partner_id" t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/>
t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/> <div t-field="o.move_lines[0].partner_id.street"/>
<div t-field="o.move_lines[0].partner_id.street"/> <span t-field="o.move_lines[0].partner_id.street2"/>
<span t-field="o.move_lines[0].partner_id.street2"/>
<br/>
<span t-field="o.move_lines[0].partner_id.city"/>
<br/>
<span t-field="o.move_lines[0].partner_id.country_id"/>
<br/>
<span t-field="o.move_lines[0].partner_id.zip"/>
<br/>
<div t-field="o.move_lines[0].partner_id.vat"/>
</div>
</div>
<div t-if="(o.move_lines and o.move_lines[0].partner_id and o.move_lines[0].partner_id.id == o.partner_id.id) or o.move_lines and not o.move_lines[0].partner_id">
<span t-field="o.partner_id"/>
<br/> <br/>
<span t-field="o.partner_id.street"/> <span t-field="o.move_lines[0].partner_id.city"/>
<br/> <br/>
<span t-field="o.partner_id.street2"/> <span t-field="o.move_lines[0].partner_id.country_id"/>
<br/> <br/>
<span t-field="o.partner_id.city"/> <span t-field="o.move_lines[0].partner_id.zip"/>
<br/>
<span t-field="o.partner_id.state_id"/>
<br/>
<span t-field="o.partner_id.country_id"/>
<br/>
<span t-field="o.partner_id.vat"/>
<br/> <br/>
<div t-field="o.move_lines[0].partner_id.vat"/>
</div> </div>
</div> </div>
<div t-if="(o.move_lines and o.move_lines[0].partner_id and o.move_lines[0].partner_id.id == o.partner_id.id) or o.move_lines and not o.move_lines[0].partner_id">
<span t-field="o.partner_id"/>
<br/>
<span t-field="o.partner_id.street"/>
<br/>
<span t-field="o.partner_id.street2"/>
<br/>
<span t-field="o.partner_id.city"/>
<br/>
<span t-field="o.partner_id.state_id"/>
<br/>
<span t-field="o.partner_id.country_id"/>
<br/>
<span t-field="o.partner_id.vat"/>
<br/>
</div>
</div> </div>
</div>
<div class="row"> <div class="row">
<!-- <div class="col-4"/> --> <!-- <div class="col-4"/> -->
@@ -109,8 +90,7 @@
<br/> <br/>
</h2> </h2>
<div> <div>
<div class="col-12">
<div class="col-12">
<span> <span>
<font color="#fff"> <font color="#fff">
<div class="row"> <div class="row">
@@ -118,22 +98,20 @@
<div class="col-4"><span t-field="o.picking_type_id"/></div> <div class="col-4"><span t-field="o.picking_type_id"/></div>
</div> </div>
</font> </font>
</span> </span>
</div> </div>
<div class="col-12"> <div class="col-12">
<span> <span>
<font color="#fff"> <font color="#fff">
<div class="row"> <div class="row">
<div class="col-3">Scheduled Date</div>: <div class="col-3">Scheduled Date</div>:
<div class="col-4"><span t-field="o.scheduled_date"/></div> <div class="col-4"><span t-field="o.scheduled_date"/></div>
</div> </div>
</font> </font>
</span> </span>
</div>
</div> </div>
</div> </div>
</div>
</div> </div>
<br/> <br/>
@@ -145,46 +123,44 @@
<th colspan="2" style="background-color:#3498DB !important;color:#FFF !important;">Code</th> <th colspan="2" style="background-color:#3498DB !important;color:#FFF !important;">Code</th>
<th colspan="3" style="background-color:#3498DB !important;color:#FFF !important;">Product</th> <th colspan="3" style="background-color:#3498DB !important;color:#FFF !important;">Product</th>
<th colspan="2" style="background-color:#3498DB !important;color:#FFF !important;">Ordered Quantity <th colspan="2" style="background-color:#3498DB !important;color:#FFF !important;">Ordered Quantity
</th> </th>
</tr>
</tr> </thead>
</thead> <tbody>
<tbody> <tr t-foreach="o.move_lines" t-as="move">
<tr t-foreach="o.move_lines" t-as="move"> <td colspan="2">
<td colspan="2"> <span t-field="move+1"/>
</td> </td>
<td colspan="2"> <td colspan="2">
</td> </td>
<td colspan="2"> <td colspan="2">
<span t-field="move.product_id.default_code"/> <span t-field="move.product_id.default_code"/>
</td> </td>
<td colspan="3"> <td colspan="3">
<span t-field="move.product_id"/> <span t-field="move.product_id"/>
</td> </td>
<td colspan="2"> <td colspan="2">
<span t-field="move.product_qty"/> <span t-field="move.product_qty"/>
<span t-field="move.product_uom"/> <span t-field="move.product_uom"/>
</td> </td>
</tr>
<tr rowspan="2">
</tr> <td colspan="6">Transport</td>
<tr rowspan="2"> <td colspan="3">Material Received by</td>
<td colspan="6">Transport</td> <td colspan="2">Deleivery Given by</td>
<td colspan="3">Material Received by</td> </tr>
<td colspan="2">Deleivery Given by</td> <tr rowspan="2">
</tr> <td colspan="6">Deriver's Name</td>
<tr rowspan="2"> <td colspan="3">Signature</td>
<td colspan="6">Deriver's Name</td> <td colspan="2">Signature</td>
<td colspan="3">Signature</td> </tr>
<td colspan="2">Signature</td> <tr rowspan="2">
</tr> <td colspan="6">Truck No.</td>
<tr rowspan="2"> <td colspan="3">Date</td>
<td colspan="6">Truck No.</td> <td colspan="2">Date</td>
<td colspan="3">Date</td> </tr>
<td colspan="2">Date</td> </tbody>
</tr>
</tbody>
</table> </table>
<table class="table table-sm" style="padding-top=50px;" t-if="o.move_line_ids"> <table class="table table-sm" style="padding-top=50px;" t-if="o.move_line_ids">
<t t-set="has_serial_number" t-value="o.move_line_ids.mapped('lot_id')" <t t-set="has_serial_number" t-value="o.move_line_ids.mapped('lot_id')"