170 lines
8.1 KiB
XML
170 lines
8.1 KiB
XML
<template>
|
|
<t t-name="Edi.sale.order.content">
|
|
<div class="oe_edi_paperbox">
|
|
<div class="oe_edi_address_from">
|
|
<div class="oe_edi_company_block_title">
|
|
<span class="oe_edi_company_name"><t t-esc="doc.company_id[1]"/></span>
|
|
</div>
|
|
<div class="oe_edi_company_block_body">
|
|
<p>
|
|
<t t-if="doc.company_address">
|
|
<t t-if="doc.company_address.street" t-esc="doc.company_address.street"/><br/>
|
|
<t t-if="doc.company_address.street2"><t t-esc="doc.company_address.street2"/><br/></t>
|
|
<t t-if="doc.company_address.zip" t-esc="doc.company_address.zip"/> <t t-if="doc.company_address.city" t-esc="doc.company_address.city"/> <br/>
|
|
<t t-if="doc.company_address.country_id"><t t-esc="doc.company_address.country_id[1]"/><br/></t>
|
|
</t>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="oe_edi_address_to">
|
|
<div class="oe_edi_company_block_title">
|
|
<span class="oe_edi_company_name"><t t-esc="doc.partner_id[1]"/></span>
|
|
</div>
|
|
<div class="oe_edi_company_block_body">
|
|
<p>
|
|
<t t-if="doc.partner_address">
|
|
<t t-if="doc.partner_address.street" t-esc="doc.partner_address.street"/><br/>
|
|
<t t-if="doc.partner_address.street2"><t t-esc="doc.partner_address.street2"/><br/></t>
|
|
<t t-if="doc.partner_address.zip" t-esc="doc.partner_address.zip"/> <t t-if="doc.partner_address.city" t-esc="doc.partner_address.city"/> <br/>
|
|
<t t-if="doc.partner_address.country_id"><t t-esc="doc.partner_address.country_id[1]"/><br/></t>
|
|
</t>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<t t-if="(doc.state == 'draft' or doc.state == 'sent') and doc.__model == 'sale.order'">
|
|
<h1 class="oe_edi_doc_title">Quotation <t t-esc="doc.name"/>: <t t-esc="_.str.sprintf('%.2f',doc.amount_total)"/> <t t-esc="doc.currency.code"/></h1>
|
|
</t>
|
|
<t t-if="(doc.state == 'draft' or doc.state == 'sent') and doc.__model == 'purchase.order'">
|
|
<h1 class="oe_edi_doc_title">Request for Quotation <t t-esc="doc.name"/>: <t t-esc="_.str.sprintf('%.2f',doc.amount_total)"/> <t t-esc="doc.currency.code"/></h1>
|
|
</t>
|
|
<t t-if="(doc.state != 'draft' and doc.state != 'sent')">
|
|
<h1 class="oe_edi_doc_title">Order <t t-esc="doc.name"/>: <t t-esc="_.str.sprintf('%.2f',doc.amount_total)"/> <t t-esc="doc.currency.code"/></h1>
|
|
</t>
|
|
|
|
<table width="100%" class="oe_edi_data oe_edi_shade">
|
|
<tr class="oe_edi_floor">
|
|
<th align="left">Your Reference</th>
|
|
<th align="left">Date</th>
|
|
<th align="left">Salesperson</th>
|
|
<th align="left">Payment terms</th>
|
|
</tr>
|
|
<tr class="oe_edi_data_row">
|
|
<td align="left"><t t-if="doc.partner_ref" t-esc="doc.partner_ref"/></td>
|
|
<td align="left"><t t-esc="doc.date_order"/></td>
|
|
<td align="left"><t t-if="doc.user_id" t-esc="doc.user_id[1]"/></td>
|
|
<td align="left">
|
|
<t t-if="doc.payment_term" t-esc="doc.payment_term[1]"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p/>
|
|
<table width="100%" class="oe_edi_data">
|
|
<tr class="oe_edi_floor">
|
|
<th align="left">Product Description</th>
|
|
<th align="right">Quantity</th>
|
|
<th align="right">Unit Price</th>
|
|
<th align="right">Discount(%)</th>
|
|
<th align="right">Price</th>
|
|
</tr>
|
|
<t t-if="doc.order_line" t-foreach="doc.order_line" t-as="doc_line">
|
|
<tr class="oe_edi_data_row">
|
|
<td align="left"><t t-esc="doc_line.name"/>
|
|
<t t-if="doc_line.notes">
|
|
<pre class="oe_edi_inner_note"><t t-esc="doc_line.notes"/></pre>
|
|
</t>
|
|
</td>
|
|
<td align="right">
|
|
<t t-esc="_.str.sprintf('%.2f',doc_line.product_qty)"/> <t t-esc="doc_line.product_uom[1]"/>
|
|
</td>
|
|
<td align="right"><t t-esc="_.str.sprintf('%.2f',doc_line.price_unit)"/></td>
|
|
<td align="right"><t t-esc="_.str.sprintf('%.2f',doc_line.discount or 0.0)"/></td>
|
|
<td align="right"><t t-esc="_.str.sprintf('%.2f',doc_line.price_subtotal)"/> <t t-esc="doc.currency.code"/></td>
|
|
</tr>
|
|
</t>
|
|
<tr>
|
|
<td colspan="3"></td>
|
|
<td colspan="2" class="oe_edi_ceiling">
|
|
<div class="oe_edi_summary_label">
|
|
Net Total:
|
|
</div>
|
|
<div class="oe_edi_summary_value">
|
|
<t t-esc="_.str.sprintf('%.2f',doc.amount_untaxed)"/> <t t-esc="doc.currency.code"/>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"></td>
|
|
<td colspan="2" class="oe_edi_floor">
|
|
<div class="oe_edi_summary_label">
|
|
Taxes:
|
|
</div>
|
|
<div class="oe_edi_summary_value">
|
|
<t t-esc="_.str.sprintf('%.2f',doc.amount_tax)"/> <t t-esc="doc.currency.code"/>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"></td>
|
|
<th colspan="2" class="oe_edi_shade">
|
|
<div class="oe_edi_summary_label">
|
|
Total:
|
|
</div>
|
|
<div class="oe_edi_summary_value">
|
|
<t t-esc="_.str.sprintf('%.2f',doc.amount_total)"/> <t t-esc="doc.currency.code"/>
|
|
</div>
|
|
</th>
|
|
</tr>
|
|
</table>
|
|
<t t-if="doc.notes">
|
|
<p>Notes:</p>
|
|
<pre class="oe_edi_inner_note"><t t-esc="doc.notes"/></pre>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
<t t-name="Edi.sale.order.sidebar">
|
|
<t t-if="doc.order_policy and (doc.order_policy == 'prepaid' || doc.order_policy == 'manual') and (doc.state != 'draft' and doc.state != 'sent')">
|
|
<t t-if="doc.company_address.paypal_account || doc.company_address.bank_ids">
|
|
<p class="oe_edi_sidebar_title">Pay Online</p>
|
|
<t t-if="doc.company_address.paypal_account">
|
|
<div class="oe_edi_option">
|
|
<input type="radio" id="oe_edi_paypal" name="oe_edi_pay" class="oe_edi_pay_choice"/>
|
|
<label for="oe_edi_paypal" id="oe_edi_paypal" class="oe_edi_pay_choice_label">Paypal</label>
|
|
</div>
|
|
<p class="oe_edi_nested_block_pay oe_edi_paypal_nested">
|
|
You may directly pay this order online via Paypal's secure payment gateway:<br/>
|
|
<a t-att-href="widget.get_paypal_url('Sale Order','name')" target="_new">
|
|
<img class="oe_edi_paypal_button" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif"/>
|
|
</a>
|
|
</p>
|
|
</t>
|
|
<t t-if="doc.company_address.bank_ids">
|
|
<div class="oe_edi_option">
|
|
<input type="radio" id="oe_edi_pay_wire" name="oe_edi_pay" class="oe_edi_pay_choice"/>
|
|
<label for="oe_edi_pay_wire" id="oe_edi_pay_wire" class="oe_edi_pay_choice_label">Bank Wire Transfer</label>
|
|
</div>
|
|
<p class="oe_edi_nested_block_pay oe_edi_pay_wire_nested">
|
|
Please transfer <strong><t t-esc="_.str.sprintf('%.2f',doc.amount_total)"/> <t t-esc="doc.currency.code"/></strong> to
|
|
<strong><t t-esc="doc.company_id[1]"/></strong> (postal address on the order header)
|
|
using one of the following bank accounts. Be sure to mention the document
|
|
reference <strong><t t-esc="doc.name"/></strong> on the transfer:
|
|
<br/><br/>
|
|
</p>
|
|
<ul class="oe_edi_nested_block_pay oe_edi_pay_wire_nested">
|
|
<t t-foreach="doc.company_address.bank_ids" t-as="bank_info">
|
|
<li><t t-esc="bank_info[1]"/></li>
|
|
</t>
|
|
</ul>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
<t t-name="Edi.purchase.order.content">
|
|
<t t-call="Edi.sale.order.content"/>
|
|
</t>
|
|
<t t-name="Edi.purchase.order.sidebar">
|
|
<t t-call="Edi.sale.order.sidebar"/>
|
|
</t>
|
|
</template>
|