diff --git a/addons/purchase/edi/purchase_order_action_data.xml b/addons/purchase/edi/purchase_order_action_data.xml index 688a7fab7a0..a9065dd28b3 100644 --- a/addons/purchase/edi/purchase_order_action_data.xml +++ b/addons/purchase/edi/purchase_order_action_data.xml @@ -46,7 +46,7 @@

Hello${object.partner_address_id.name and ' ' or ''}${object.partner_address_id.name or ''},

-

Your order for ${object.partner_id.name} has just been validated:

+

An order from ${object.company_id.name} for ${object.partner_id.name} has just been validated:

  REFERENCES
@@ -63,33 +63,14 @@

- You can view the order confirmation document, download it and pay online using the following link: + You can view the order confirmation document and download it using the following link:

View Order - % if object.company_id.paypal_account: - <% - comp_name = quote(object.company_id.name) - order_name = quote(object.name) - paypal_account = quote(object.company_id.paypal_account) - order_amount = quote(str(object.amount_total)) - cur_name = quote(object.pricelist_id.currency_id.name) - paypal_url = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=%s&item_name=%s%%20Order%%20%s" \ - "&invoice=%s&amount=%s&currency_code=%s&button_subtype=services&no_note=1" \ - "&bn=OpenERP_Order_PayNow_%s" % \ - (paypal_account,comp_name,order_name,order_name,order_amount,cur_name,cur_name) - %> -
-

It is also possible to directly pay with Paypal:

- - - - % endif -

If you have any question, do not hesitate to contact us.

-

Thank you for choosing ${object.company_id.name or 'us'}!

+

Thank you!



@@ -128,7 +109,7 @@ '%(object.validator.user_email) or ''} -You can view the order confirmation, download it and even pay online using the following link: +You can view the order confirmation and download it using the following link: ${ctx.get('edi_web_url_view') or 'n/a'} -% if object.company_id.paypal_account: -<% -comp_name = quote(object.company_id.name) -order_name = quote(object.name) -paypal_account = quote(object.company_id.paypal_account) -order_amount = quote(str(object.amount_total)) -cur_name = quote(object.pricelist_id.currency_id.name) -paypal_url = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=%s&item_name=%s%%20Order%%20%s&invoice=%s&amount=%s" \ - "¤cy_code=%s&button_subtype=services&no_note=1&bn=OpenERP_Order_PayNow_%s" % \ - (paypal_account,comp_name,order_name,order_name,order_amount,cur_name,cur_name) -%> -It is also possible to directly pay with Paypal: - ${paypal_url} -% endif - If you have any question, do not hesitate to contact us. - -Thank you for choosing ${object.company_id.name}! +Thank you! --