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-set="o" t-value="o.with_context({'lang':o.partner_id.lang})"/>
<div class="page">
<div class="page">
<div class="oe_structure"/>
<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>
<br/>
<span t-field="o.partner_id"/>
@@ -38,113 +38,108 @@
<br/>
<span t-field="o.partner_id.vat"/>
<br/>
</div>
<div class="col-4">
</div>
<div class="col-4" style="font:15px lucida-console,sans-serif !important; ">
<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>
<div t-field="o.move_lines[0].partner_id"
t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/>
<div t-field="o.move_lines[0].partner_id.street"/>
<span t-field="o.move_lines[0].partner_id.street2"/>
</div>
<div class="col-5">
</div>
<div class="col-4" style="font:15px lucida-console,sans-serif !important; ">
<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>
<div t-field="o.move_lines[0].partner_id"
t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/>
<div t-field="o.move_lines[0].partner_id.street"/>
<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/>
<span t-field="o.move_lines[0].partner_id.city"/>
<span t-field="o.partner_id.street"/>
<br/>
<span t-field="o.move_lines[0].partner_id.country_id"/>
<span t-field="o.partner_id.street2"/>
<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/>
<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/>
<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 class="row">
<!-- <div class="col-4"/> -->
<div class="col-12"
style="font:15px lucida-console,sans-serif !important; background-color: #3498DB;">
<h2>
<span>
<font color="#fff">Delivery Note #</font>
<span style="color:#FFF !important;" t-field="o.name"/>
</span>
<br/>
<div class="col-12" style="font:15px lucida-console,sans-serif !important; background-color: #3498DB;"><h2>
<span><font color="#fff">Delivery Note #</font>
<span style="color:#FFF !important;" t-field="o.name"/>
</span><br/>
</h2>
<div>
<div class="col-12">
<span>
<font color="#fff">
<div class="row">
<div class ="col-3">Origin</div>:
<div class="col-4"><span t-field="o.picking_type_id"/></div>
</div>
</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>
</div>
<div class="col-12">
<span>
<font color="#fff">
<div class="row">
<div class ="col-3">Origin</div>:
<div class="col-4"><span t-field="o.picking_type_id"/></div>
</div>
</font>
</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>
<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>
<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;">W/H</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="2" style="background-color:#3498DB !important;color:#FFF !important;">Ordered Quantity
</th>
</tr>
</thead>
<tbody>
<tr t-foreach="o.move_lines" t-as="move">
<td colspan="2">
<!-- <span t-field="move+1"/>-->
</td>
<td colspan="2">
</td>
<td colspan="2">
<span t-field="move.product_id.default_code"/>
</td>
<th colspan="2" style="background-color:#3498DB !important;color:#FFF !important;">Ordered Quantity</th>
</tr>
</thead>
<tbody>
<t t-set="seq_move" t-value="1"/>
<tr t-foreach="o.move_line_ids" t-as="move_line">
<td colspan="2">
<t t-esc="seq_move"></t>
</td>
<t t-set="seq_move" t-value="seq_move+1"/>
<td colspan="2">
</td>
<td colspan="2">
<span t-field="move.product_id.default_code"/>
</td>
<td colspan="3">
<span t-field="move.product_id"/>
</td>
<td colspan="2">
<span t-field="move.product_qty"/>
<span t-field="move.product_uom"/>
</td>
</tr>
<td colspan="3">
<span t-field="move.product_id"/>
</td>
<td colspan="2">
<span t-field="move.product_qty"/>
<span t-field="move.product_uom"/>
</td>
</tr>
<tr rowspan="2">
<td colspan="6">Transport</td>
<td colspan="3">Material Received by</td>