summaryrefslogtreecommitdiff
path: root/addons/edi/static/src/xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2011-11-03 00:40:13 +0100
committerOlivier Dony <odo@openerp.com>2011-11-03 00:40:13 +0100
commitc7ca5cafc4448fc573f7399b0bfe7a301b50cc06 (patch)
tree39e7dc9d5d87426d2d0d0bc26d5e28a8a8aee00a /addons/edi/static/src/xml
parent85c9420dba8e4c8c2e1147e758630ce7d0425132 (diff)
[IMP] edi: EDI preview - SO/PO payment
bzr revid: odo@openerp.com-20111102234013-6j1hvufoh6970kp7
Diffstat (limited to 'addons/edi/static/src/xml')
-rw-r--r--addons/edi/static/src/xml/edi_sale_purchase.xml40
1 files changed, 31 insertions, 9 deletions
diff --git a/addons/edi/static/src/xml/edi_sale_purchase.xml b/addons/edi/static/src/xml/edi_sale_purchase.xml
index 9086894923e..95f3a39936f 100644
--- a/addons/edi/static/src/xml/edi_sale_purchase.xml
+++ b/addons/edi/static/src/xml/edi_sale_purchase.xml
@@ -116,16 +116,38 @@
</div>
</t>
<t t-name="Edi.sale.order.sidebar">
- <t t-if="doc">
+ <t t-if="doc.company_address.paypal_account || doc.company_address.bank_ids">
<p class="oe_edi_sidebar_title">Pay Online</p>
-
- <input type="radio" id="oe_edi_pay_paypal" name="oe_edi_invoice_rd_pay" value="paypal"/>
- <label for="oe_edi_pay_paypal">Paypal</label>
- <a href="#"><img src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif"/></a>
- <br/>
-
- <input type="radio" id="oe_edi_pay_bank" name="oe_edi_invoice_rd_pay" value="bank"/>
- <label for="oe_edi_pay_paypal">Bank wire Transfer</label>
+ <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="_.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-name="Edi.purchase.order.content">