<?xml version="1.0"?> <t t-name="sale.report_saleorder_document"> <t t-call="report.external_layout"> <div class="page"> <div class="oe_structure"/> <div class="row"> <div class="col-xs-6"> <strong t-if="o.partner_shipping_id == o.partner_invoice_id">INVOICE AND SHIPPING ADDRESS:</strong> <strong t-if="o.partner_shipping_id != o.partner_invoice_id">INVOICE ADDRESS:</strong> <div t-field="o.partner_invoice_id" t-field-options="{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}"/> <p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p> <div t-if="o.partner_shipping_id != o.partner_invoice_id" class="mt8"> <strong>SHIPPING ADDRESS:</strong> <div t-field="o.partner_shipping_id" t-field-options="{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}"/> <p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p> </div> </div> <div class="col-xs-5 col-xs-offset-1"> <div t-field="o.partner_id" t-field-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}"/> </div> </div> <h2> <span t-if="o.state not in ['draft','sent']">ORDER N° </span> <span t-if="o.state in ['draft','sent']">QUOTATION N° </span> <span t-field="o.name"/> </h2> <div class="row mt32 mb32" id="informations"> <div t-if="o.client_order_ref" class="col-xs-3"> <strong>YOUR REFERENCE:</strong> <p t-field="o.client_order_ref"/> </div> <div t-if="o.date_order" class="col-xs-3"> <strong t-if="o.state not in ['draft','sent']">DATE ORDERED:</strong> <strong t-if="o.state in ['draft','sent']">QUOTATION DATE:</strong> <p t-field="o.date_order"/> </div> <div t-if="o.user_id.name" class="col-xs-3"> <strong>SALESPERSON:</strong> <p t-field="o.user_id.name"/> </div> <div t-if="o.payment_term" class="col-xs-3"> <strong>PAYMENT TERMS:</strong> <p t-field="o.payment_term"/> </div> </div> <table class="table table-condensed"> <thead> <tr> <th class="text-LEFT">DESCRIPTION</th> <th class="text-LEFT">TAXES</th> <th class="text-LEFT">QUANITITY</th> <th class="text-LEFT">PACK SIZE</th> <th class="text-right">UNIT PRICE</th> <th groups="sale.group_discount_per_so_line">Disc.(%)</th> <th class="text-right">EXTENED PRICE</th> </tr> </thead> <t t-foreach="p['lines']" t-as="l"> <tr t-attf-class="row-{{l_parity}}"> <tbody class="sale_tbody"> <tr t-foreach="o.order_line" t-as="l"> <td> <span t-field="l.name"/> </td> <td> <span t-esc="', '.join(map(lambda x: x.name, l.tax_id))"/> </td> <td class="text-LEFTt"> <span t-field="l.product_uom_qty"/> </td> <td class="text-LEFTt"> <span groups="product.group_uom" t-field="l.product_uom"/> </td> <td class="text-right"> <span t-field="l.price_unit"/> </td> <td groups="sale.group_discount_per_so_line"> <span t-field="l.discount"/> </td> <td class="text-right"> <span t-field="l.price_subtotal" t-field-options="{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}"/> </td> </tr> </tbody> </tr> </t>
</table> <div class="row"> <div class="col-xs-4 pull-right"> <table class="table table-condensed"> <tr class="border-black"> <td><strong>TOTAL WITHOUT TAXES</strong></td> <td class="text-right"> <span t-field="o.amount_untaxed" t-field-options="{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}"/> </td> </tr> <tr> <td>TAXES</td> <td class="text-right"> <span t-field="o.amount_tax" t-field-options="{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}"/> </td> </tr> <tr class="border-black"> <td><strong>TOTAL</strong></td> <td class="text-right"> <span t-field="o.amount_total" t-field-options="{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}"/> </td> </tr> </table> </div> </div> <p t-field="o.note"/> <p t-if="o.payment_term.note"> <strong>PAYMENT:</strong> <span t-field="o.payment_term.note"/> </p> <div class="oe_structure"/> </div> </t> </t>
|
I would love to have such feature too.