mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-17 18:29:08 +02:00
work on sale report
This commit is contained in:
@@ -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>
|
||||||
|
</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>
|
||||||
|
|
||||||
</tr>
|
<td colspan="3">
|
||||||
</thead>
|
<span t-field="move.product_id"/>
|
||||||
<tbody>
|
</td>
|
||||||
<tr t-foreach="o.move_lines" t-as="move">
|
<td colspan="2">
|
||||||
<td colspan="2">
|
<span t-field="move.product_qty"/>
|
||||||
</td>
|
<span t-field="move.product_uom"/>
|
||||||
<td colspan="2">
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
<td colspan="2">
|
<tr rowspan="2">
|
||||||
<span t-field="move.product_id.default_code"/>
|
<td colspan="6">Transport</td>
|
||||||
</td>
|
<td colspan="3">Material Received by</td>
|
||||||
|
<td colspan="2">Deleivery Given by</td>
|
||||||
<td colspan="3">
|
</tr>
|
||||||
<span t-field="move.product_id"/>
|
<tr rowspan="2">
|
||||||
</td>
|
<td colspan="6">Deriver's Name</td>
|
||||||
<td colspan="2">
|
<td colspan="3">Signature</td>
|
||||||
<span t-field="move.product_qty"/>
|
<td colspan="2">Signature</td>
|
||||||
<span t-field="move.product_uom"/>
|
</tr>
|
||||||
</td>
|
<tr rowspan="2">
|
||||||
|
<td colspan="6">Truck No.</td>
|
||||||
|
<td colspan="3">Date</td>
|
||||||
</tr>
|
<td colspan="2">Date</td>
|
||||||
<tr rowspan="2">
|
</tr>
|
||||||
<td colspan="6">Transport</td>
|
</tbody>
|
||||||
<td colspan="3">Material Received by</td>
|
|
||||||
<td colspan="2">Deleivery Given by</td>
|
|
||||||
</tr>
|
|
||||||
<tr rowspan="2">
|
|
||||||
<td colspan="6">Deriver's Name</td>
|
|
||||||
<td colspan="3">Signature</td>
|
|
||||||
<td colspan="2">Signature</td>
|
|
||||||
</tr>
|
|
||||||
<tr rowspan="2">
|
|
||||||
<td colspan="6">Truck No.</td>
|
|
||||||
<td colspan="3">Date</td>
|
|
||||||
<td colspan="2">Date</td>
|
|
||||||
</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')"
|
||||||
|
|||||||
Reference in New Issue
Block a user