1 <?xml version="1.0" encoding="utf-8"?>
4 <template id="report_saleorder_document">
5 <t t-call="report.external_layout">
7 <div class="oe_structure"/>
10 <p t-if="o.partner_shipping_id == o.partner_invoice_id">Invoice and shipping address:</p>
11 <p t-if="o.partner_shipping_id != o.partner_invoice_id">Invoice address: </p>
12 <div t-field="o.partner_invoice_id"
13 t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/>
14 <p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p>
15 <div t-if="o.partner_shipping_id != o.partner_invoice_id">
16 <p>Shipping address :</p>
17 <div t-field="o.partner_shipping_id"
18 t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/>
19 <p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p>
22 <div class="col-xs-5 col-xs-offset-1">
23 <div t-field="o.partner_id"
24 t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}' />
29 <span t-if="o.state not in ['draft','sent']">Order N° </span>
30 <span t-if="o.state in ['draft','sent']">Quotation N° </span>
31 <span t-field="o.name"/>
34 <div class="row mt32 mb32">
35 <div t-if="o.client_order_ref" class="col-xs-3">
36 <strong>Your Reference:</strong>
37 <p t-field="o.client_order_ref"/>
39 <div t-if="o.date_order" class="col-xs-3">
40 <strong t-if="o.state not in ['draft','sent']">Date Ordered:</strong>
41 <strong t-if="o.state in ['draft','sent']">Quotation Date:</strong>
42 <p t-field="o.date_order"/>
44 <div t-if="o.user_id.name" class="col-xs-3">
45 <strong>Salesperson:</strong>
46 <p t-field="o.user_id.name"/>
48 <div t-if="o.payment_term" class="col-xs-3">
49 <strong>Payment Term:</strong>
50 <p t-field="o.payment_term"/>
54 <table class="table table-condensed">
59 <th class="text-right">Quantity</th>
60 <th class="text-right">Unit Price</th>
61 <th groups="sale.group_discount_per_so_line">Disc.(%)</th>
62 <th class="text-right">Price</th>
65 <tbody class="sale_tbody">
66 <tr t-foreach="o.order_line" t-as="l">
68 <span t-field="l.name"/>
71 <span t-esc="', '.join(map(lambda x: x.name, l.tax_id))"/>
73 <td class="text-right">
74 <span t-field="l.product_uom_qty"/>
75 <span groups="product.group_uom" t-field="l.product_uom"/>
77 <td class="text-right">
78 <span t-field="l.price_unit"/>
80 <td groups="sale.group_discount_per_so_line">
81 <span t-field="l.discount"/>
83 <td class="text-right">
84 <span t-field="l.price_subtotal"
85 t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>
92 <div class="col-xs-4 pull-right">
93 <table class="table table-condensed">
94 <tr class="border-black">
95 <td><strong>Total Without Taxes</strong></td>
96 <td class="text-right">
97 <span t-field="o.amount_untaxed"
98 t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>
103 <td class="text-right">
104 <span t-field="o.amount_tax"
105 t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>
108 <tr class="border-black">
109 <td><strong>Total</strong></td>
110 <td class="text-right">
111 <span t-field="o.amount_total"
112 t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>
119 <p t-field="o.note" />
120 <p t-if="o.payment_term">
121 <strong>Payment Term:</strong>
122 <span t-field="o.payment_term"/>
124 <div class="oe_structure"/>
129 <template id="report_saleorder">
130 <t t-call="report.html_container">
131 <t t-foreach="doc_ids" t-as="doc_id">
132 <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'sale.report_saleorder_document')"/>