2011-10-18 14:06:27 +00:00
<template >
2011-10-18 21:22:58 +00:00
<t t-name= "Edi.sale.order.content" >
2011-10-26 00:01:10 +00:00
<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>
2012-05-25 14:35:49 +00:00
<t t-if= "(doc.state == 'draft' or doc.state == 'sent') and doc.__model == 'sale.order'" >
2012-05-25 13:35:36 +00:00
<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>
2012-05-25 14:35:49 +00:00
</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>
2012-05-25 13:35:36 +00:00
</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>
2011-10-26 00:01:10 +00:00
<table width= "100%" class= "oe_edi_data oe_edi_shade" >
<tr class= "oe_edi_floor" >
2011-10-18 14:06:27 +00:00
<th align= "left" > Your Reference</th>
2011-10-26 00:01:10 +00:00
<th align= "left" > Date</th>
2012-05-04 12:13:26 +00:00
<th align= "left" > Salesperson</th>
2011-10-26 00:01:10 +00:00
<th align= "left" > Payment terms</th>
2011-10-18 14:06:27 +00:00
</tr>
2011-10-26 00:01:10 +00:00
<tr class= "oe_edi_data_row" >
<td align= "left" > <t t-if= "doc.partner_ref" t-esc= "doc.partner_ref" /> </td>
2011-10-18 14:06:27 +00:00
<td align= "left" > <t t-esc= "doc.date_order" /> </td>
2011-11-02 23:58:41 +00:00
<td align= "left" > <t t-if= "doc.user_id" t-esc= "doc.user_id[1]" /> </td>
2011-10-18 14:06:27 +00:00
<td align= "left" >
2011-10-26 00:01:10 +00:00
<t t-if= "doc.payment_term" t-esc= "doc.payment_term[1]" />
2011-10-18 14:06:27 +00:00
</td>
</tr>
</table>
2011-10-26 00:01:10 +00:00
<p />
<table width= "100%" class= "oe_edi_data" >
<tr class= "oe_edi_floor" >
2011-10-18 14:06:27 +00:00
<th align= "left" > Product Description</th>
2011-10-26 00:01:10 +00:00
<th align= "right" > Quantity</th>
<th align= "right" > Unit Price</th>
<th align= "right" > Discount(%)</th>
2011-10-18 14:06:27 +00:00
<th align= "right" > Price</th>
</tr>
<t t-if= "doc.order_line" t-foreach= "doc.order_line" t-as= "doc_line" >
2011-10-26 00:01:10 +00:00
<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" >
2011-11-18 13:08:49 +00:00
<t t-esc= "_.str.sprintf('%.2f',doc_line.product_qty)" /> <t t-esc= "doc_line.product_uom[1]" />
2011-10-26 00:01:10 +00:00
</td>
2011-11-18 13:08:49 +00:00
<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>
2011-10-18 14:06:27 +00:00
</tr>
</t>
<tr >
<td colspan= "3" > </td>
2011-10-26 00:01:10 +00:00
<td colspan= "2" class= "oe_edi_ceiling" >
<div class= "oe_edi_summary_label" >
Net Total:
</div>
<div class= "oe_edi_summary_value" >
2011-11-18 13:08:49 +00:00
<t t-esc= "_.str.sprintf('%.2f',doc.amount_untaxed)" /> <t t-esc= "doc.currency.code" />
2011-10-26 00:01:10 +00:00
</div>
</td>
2011-10-18 14:06:27 +00:00
</tr>
<tr >
<td colspan= "3" > </td>
2011-10-26 00:01:10 +00:00
<td colspan= "2" class= "oe_edi_floor" >
<div class= "oe_edi_summary_label" >
Taxes:
</div>
<div class= "oe_edi_summary_value" >
2011-11-18 13:08:49 +00:00
<t t-esc= "_.str.sprintf('%.2f',doc.amount_tax)" /> <t t-esc= "doc.currency.code" />
2011-10-26 00:01:10 +00:00
</div>
</td>
2011-10-18 14:06:27 +00:00
</tr>
<tr >
<td colspan= "3" > </td>
2011-10-26 00:01:10 +00:00
<th colspan= "2" class= "oe_edi_shade" >
<div class= "oe_edi_summary_label" >
Total:
</div>
<div class= "oe_edi_summary_value" >
2011-11-18 13:08:49 +00:00
<t t-esc= "_.str.sprintf('%.2f',doc.amount_total)" /> <t t-esc= "doc.currency.code" />
2011-10-26 00:01:10 +00:00
</div>
</th>
2011-10-18 14:06:27 +00:00
</tr>
</table>
2011-10-26 00:01:10 +00:00
<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" >
2012-05-25 13:35:36 +00:00
<t t-if= "doc.order_policy and (doc.order_policy == 'prepaid' || doc.order_policy == 'manual') and (doc.state != 'draft' and doc.state != 'sent')" >
2011-11-02 23:52:24 +00:00
<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" >
2011-11-18 13:08:49 +00:00
Please transfer <strong > <t t-esc= "_.str.sprintf('%.2f',doc.amount_total)" /> <t t-esc= "doc.currency.code" /> </strong> to
2011-11-02 23:52:24 +00:00
<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>
2012-09-06 10:17:23 +00:00
<ul class= "oe_edi_nested_block_pay oe_edi_pay_wire_nested" >
2011-11-02 23:52:24 +00:00
<t t-foreach= "doc.company_address.bank_ids" t-as= "bank_info" >
<li > <t t-esc= "bank_info[1]" /> </li>
</t>
</ul>
2011-11-02 23:40:13 +00:00
</t>
</t>
2011-10-26 00:01:10 +00:00
</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" />
2011-10-18 14:06:27 +00:00
</t>
</template>