work on sale report

This commit is contained in:
sonal arora
2020-09-15 16:19:38 +05:30
parent d7547fdb42
commit cd5806d6e3

View File

@@ -18,10 +18,10 @@
<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})"/>
<div class="page"> <div class="page">
<div class="oe_structure"/> <div class="oe_structure"/>
<div class="row"> <div class="row">
<div class="col-4" style="font:15px lucida-console,sans-serif !important;"> <div class="col-5" style="font:15px lucida-console,sans-serif !important;">
<span style="background-color:#3498DB;">Customer Address</span> <span style="background-color:#3498DB;">Customer Address</span>
<br/> <br/>
<span t-field="o.partner_id"/> <span t-field="o.partner_id"/>
@@ -38,113 +38,108 @@
<br/> <br/>
<span t-field="o.partner_id.vat"/> <span t-field="o.partner_id.vat"/>
<br/> <br/>
</div> </div>
<div class="col-4"> <div class="col-5">
</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.move_lines[0].partner_id.city"/> <span t-field="o.partner_id.street"/>
<br/> <br/>
<span t-field="o.move_lines[0].partner_id.country_id"/> <span t-field="o.partner_id.street2"/>
<br/> <br/>
<span t-field="o.move_lines[0].partner_id.zip"/> <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/> <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-12" style="font:15px lucida-console,sans-serif !important; background-color: #3498DB;"><h2>
<div class="col-12" <span><font color="#fff">Delivery Note #</font>
style="font:15px lucida-console,sans-serif !important; background-color: #3498DB;"> <span style="color:#FFF !important;" t-field="o.name"/>
<h2> </span><br/>
<span>
<font color="#fff">Delivery Note #</font>
<span style="color:#FFF !important;" t-field="o.name"/>
</span>
<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">
<div class ="col-3">Origin</div>: <div class ="col-3">Origin</div>:
<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>
</div>
<div class="col-12">
<span>
<font color="#fff">
<div class="row">
<div class="col-3">Scheduled Date</div>:
<div class="col-4"><span t-field="o.scheduled_date"/></div>
</div>
</font>
</span> </span>
</div> </div>
<div class="col-12">
<span>
<font color="#fff">
<div class="row">
<div class="col-3">Scheduled Date</div>:
<div class="col-4"><span t-field="o.scheduled_date"/></div>
</div>
</font>
</span>
</div>
</div> </div>
</div> </div>
</div> </div>
<br/> <br/>
<table class="table table-sm" style="padding-top=50px; padding-bottom=50px;" t-if="not o.move_line_ids"> <table class="table" style="padding-top=50px; padding-bottom=50px;" t-if="not o.move_line_ids">
<thead> <thead>
<tr> <tr>
<th colspan="2" style="background-color:#3498DB !important;color:#FFF !important;">No</th> <th colspan="2" style="background-color:#3498DB !important;color:#FFF !important;">No</th>
<th colspan="2" style="background-color:#3498DB !important;color:#FFF !important;">W/H</th> <th colspan="2" style="background-color:#3498DB !important;color:#FFF !important;">W/H</th>
<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> <t t-set="seq_move" t-value="1"/>
<tr t-foreach="o.move_lines" t-as="move"> <tr t-foreach="o.move_line_ids" t-as="move_line">
<td colspan="2"> <td colspan="2">
<!-- <span t-field="move+1"/>--> <t t-esc="seq_move"></t>
</td> </td>
<td colspan="2"> <t t-set="seq_move" t-value="seq_move+1"/>
</td> <td colspan="2">
<td colspan="2"> </td>
<span t-field="move.product_id.default_code"/> <td colspan="2">
</td> <span t-field="move.product_id.default_code"/>
</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>
<tr rowspan="2"> <tr rowspan="2">
<td colspan="6">Transport</td> <td colspan="6">Transport</td>
<td colspan="3">Material Received by</td> <td colspan="3">Material Received by</td>