1<?xml version="1.0" encoding="utf-8"?> 2<odoo> 3<template id="report_purchasequotation_document"> 4 <t t-call="web.external_layout"> 5 <t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/> 6 <t t-set="address"> 7 <div t-field="o.partner_id" 8 t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/> 9 <p t-if="o.partner_id.vat"><t t-esc="o.company_id.country_id.vat_label or 'Tax ID'"/>: <span t-field="o.partner_id.vat"/></p> 10 </t> 11 <t t-if="o.dest_address_id"> 12 <t t-set="information_block"> 13 <strong>Shipping address:</strong> 14 <div t-field="o.dest_address_id" 15 t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}' name="purchase_shipping_address"/> 16 </t> 17 </t> 18 <div class="page"> 19 <div class="oe_structure"/> 20 21 <h2>Request for Quotation <span t-field="o.name"/></h2> 22 23 <table class="table table-sm"> 24 <thead> 25 <tr> 26 <th name="th_description"><strong>Description</strong></th> 27 <th name="th_expected_date" class="text-center"><strong>Expected Date</strong></th> 28 <th name="th_quantity" class="text-right"><strong>Qty</strong></th> 29 </tr> 30 </thead> 31 <tbody> 32 <t t-foreach="o.order_line" t-as="order_line"> 33 <tr t-att-class="'bg-200 font-weight-bold o_line_section' if order_line.display_type == 'line_section' else 'font-italic o_line_note' if order_line.display_type == 'line_note' else ''"> 34 <t t-if="not order_line.display_type"> 35 <td id="product"> 36 <span t-field="order_line.name"/> 37 </td> 38 <td class="text-center"> 39 <span t-field="order_line.date_planned"/> 40 </td> 41 <td class="text-right"> 42 <span t-field="order_line.product_qty"/> 43 <span t-field="order_line.product_uom" groups="uom.group_uom"/> 44 </td> 45 </t> 46 <t t-else=""> 47 <td colspan="99" id="section"> 48 <span t-field="order_line.name"/> 49 </td> 50 </t> 51 </tr> 52 </t> 53 </tbody> 54 </table> 55 56 <p t-field="o.notes"/> 57 58 <div class="oe_structure"/> 59 </div> 60 </t> 61</template> 62 63<template id="report_purchasequotation"> 64 <t t-call="web.html_container"> 65 <t t-foreach="docs" t-as="o"> 66 <t t-call="purchase.report_purchasequotation_document" t-lang="o.partner_id.lang"/> 67 </t> 68 </t> 69</template> 70</odoo> 71