78 lines
3.3 KiB
XML
78 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<template id="report_purchasequotation_document">
|
|
<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="oe_structure"/>
|
|
|
|
<div class="row mt32 mb32">
|
|
<div class="col-xs-6">
|
|
<strong>Shipping address:</strong>
|
|
<div t-if="o.dest_address_id">
|
|
<div t-field="o.dest_address_id"
|
|
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
|
|
</div>
|
|
<div t-if="not o.dest_address_id and o.picking_type_id.warehouse_id">
|
|
<span t-field="o.picking_type_id.warehouse_id.name"/>
|
|
<div t-field="o.picking_type_id.warehouse_id.partner_id"
|
|
t-options='{"widget": "contact", "fields": ["address", "phone"], "no_marker": True, "phone_icons": True}'/>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-5 col-xs-offset-1">
|
|
<div t-field="o.partner_id"
|
|
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
|
|
<p t-if="o.partner_id.vat"><t t-esc="o.company_id.country_id.vat_label or 'TIN'"/>: <span t-field="o.partner_id.vat"/></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div name="branch" t-if="o.branch_id" class="col-xs-3" groups="base_branch_company.group_multi_branch">
|
|
<strong>Branch:</strong>
|
|
<p t-field="o.branch_id"/>
|
|
</div>
|
|
</div>
|
|
|
|
<h2>Request for Quotation <span t-field="o.name"/></h2>
|
|
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th><strong>Description</strong></th>
|
|
<th class="text-center"><strong>Expected Date</strong></th>
|
|
<th class="text-right"><strong>Qty</strong></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr t-foreach="o.order_line" t-as="order_line">
|
|
<td>
|
|
<span t-field="order_line.name"/>
|
|
</td>
|
|
<td class="text-center">
|
|
<span t-field="order_line.date_planned"/>
|
|
</td>
|
|
<td class="text-right">
|
|
<span t-field="order_line.product_qty"/>
|
|
<span t-field="order_line.product_uom" groups="product.group_uom"/>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<p t-field="o.notes"/>
|
|
|
|
<div class="oe_structure"/>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="report_purchasequotation">
|
|
<t t-call="web.html_container">
|
|
<t t-foreach="docs" t-as="o">
|
|
<t t-call="purchase.report_purchasequotation_document" t-lang="o.partner_id.lang"/>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</flectra>
|
|
|