diff --git a/addons/account/data/invoice_action_data.xml b/addons/account/data/invoice_action_data.xml
index e04a3517032..11ed429d417 100644
--- a/addons/account/data/invoice_action_data.xml
+++ b/addons/account/data/invoice_action_data.xml
@@ -16,58 +16,31 @@
Hello ${object.partner_id.name}, A new invoice is available for you:
- REFERENCES It is also possible to directly pay with Paypal: If you have any question, do not hesitate to contact us. Thank you for choosing ${object.company_id.name or 'us'}!
- Invoice number: ${object.number}
- Invoice total: ${object.amount_total} ${object.currency_id.name}
- Invoice date: ${object.date_invoice}
- % if object.origin:
- Order reference: ${object.origin}
- % endif
- % if object.user_id:
- Your contact: ${object.user_id.name}
- % endif
-
-
-
- % endif
-
-
-
-
-
- ${object.company_id.name}
-
Dear +% if object.partner_id.company_type == 'company' and object.child_ids: + ${object.partner_id.child_ids[0].name} +% else : + ${object.partner_id.name} +% endif +,
+Thank you for your inquiry. Here is your invoice ${object.name} +% if object.origin: +(with reference: ${object.origin} ) +% endif +amounting ${object.amount_total} ${object.currency_id.name} +from ${object.company_id.name}. +
+ ++ ${access_name} +
+If you have any question, do not hesitate to contact us.
+Best regards,
+]]> diff --git a/addons/portal_sale/__openerp__.py b/addons/portal_sale/__openerp__.py index aaf13bbca44..1ea72f45e77 100644 --- a/addons/portal_sale/__openerp__.py +++ b/addons/portal_sale/__openerp__.py @@ -29,7 +29,6 @@ by default, you simply need to configure a Paypal account in the Accounting/Invo 'data': [ 'security/portal_security.xml', 'portal_sale_view.xml', - 'portal_sale_data.xml', 'security/ir.model.access.csv', ], 'auto_install': True, diff --git a/addons/portal_sale/portal_sale.py b/addons/portal_sale/portal_sale.py index c422c7ac57e..0c071e1c37d 100644 --- a/addons/portal_sale/portal_sale.py +++ b/addons/portal_sale/portal_sale.py @@ -9,19 +9,6 @@ from openerp import SUPERUSER_ID class sale_order(osv.Model): _inherit = 'sale.order' - def action_quotation_send(self, cr, uid, ids, context=None): - ''' Override to use a modified template that includes a portal signup link ''' - action_dict = super(sale_order, self).action_quotation_send(cr, uid, ids, context=context) - try: - template_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'portal_sale', 'email_template_edi_sale')[1] - # assume context is still a dict, as prepared by super - ctx = action_dict['context'] - ctx['default_template_id'] = template_id - ctx['default_use_template'] = True - except Exception: - pass - return action_dict - def action_confirm(self, cr, uid, ids, context=None): # fetch the partner's id and subscribe the partner to the sale order assert len(ids) == 1 @@ -52,19 +39,6 @@ class sale_order(osv.Model): class account_invoice(osv.Model): _inherit = 'account.invoice' - def action_invoice_sent(self, cr, uid, ids, context=None): - ''' Override to use a modified template that includes a portal signup link ''' - action_dict = super(account_invoice, self).action_invoice_sent(cr, uid, ids, context=context) - try: - template_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'portal_sale', 'email_template_edi_invoice')[1] - # assume context is still a dict, as prepared by super - ctx = action_dict['context'] - ctx['default_template_id'] = template_id - ctx['default_use_template'] = True - except Exception: - pass - return action_dict - def invoice_validate(self, cr, uid, ids, context=None): # fetch the partner's id and subscribe the partner to the invoice for invoice in self.browse(cr, uid, ids, context=context): diff --git a/addons/portal_sale/portal_sale_data.xml b/addons/portal_sale/portal_sale_data.xml deleted file mode 100644 index 0b4a0246f3e..00000000000 --- a/addons/portal_sale/portal_sale_data.xml +++ /dev/null @@ -1,167 +0,0 @@ -Hello ${object.partner_id.name},
- -Here is your ${object.state in ('draft', 'sent') and 'quotation' or 'order confirmation'} from ${object.company_id.name}:
- -
- REFERENCES
- Order number: ${object.name}
- Order total: ${object.amount_total} ${object.pricelist_id.currency_id.name}
- Order date: ${format_tz(object.date_order, tz=user.tz, context={'lang':object.partner_id.lang})}
- % if object.validity_date and object.state in ('draft', 'sent'):
- Expiration date: ${object.validity_date}
- % endif
- % if object.origin:
- Order reference: ${object.origin}
- % endif
- % if object.client_order_ref:
- Your reference: ${object.client_order_ref}
- % endif
- % if object.user_id:
- Your contact: ${object.user_id.name}
- % endif
-
- You can access this document and pay online via our Customer Portal: -
- View ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'} - % endif - - % if object.paypal_url and object.amount_total > 0 : -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'}!
-Hello ${object.partner_id.name},
- -A new invoice is available for you:
- -
- REFERENCES
- Invoice number: ${object.number}
- Invoice total: ${object.amount_total} ${object.currency_id.name}
- Invoice date: ${object.date_invoice}
- % if object.origin:
- Order reference: ${object.origin}
- % endif
- % if object.user_id:
- Your contact: ${object.user_id.name}
- % endif
-
- You can access the invoice document and pay online via our Customer Portal: -
- View Invoice - % endif - - % if object.paypal_url: -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'}!
-Dear +% if object.partner_id.company_type == 'company' and object.child_ids: + ${object.partner_id.child_ids[0].name} +% else : + ${object.partner_id.name} +% endif +,
+Here is a ${object.state in ('draft', 'sent') and 'request for quotation' or 'purchase order confirmation'} ${object.name} +% if object.partner_ref: + with reference: ${object.partner_ref} +% endif +% if object.origin: + (RFQ origin: ${object.origin}) +% endif +amounting ${object.amount_total} ${object.currency_id.name} +from ${object.company_id.name}. +
-Hello ${object.partner_id.name},
- -Here is a ${object.state in ('draft', 'sent') and 'request for quotation' or 'purchase order confirmation'} from ${object.company_id.name}:
- -
- REFERENCES
- RFQ number: ${object.name}
- RFQ date: ${object.date_order}
- % if object.origin:
- RFQ reference: ${object.origin}
- % endif
- % if object.partner_ref:
- Your reference: ${object.partner_ref}
- % endif
- % if object.create_uid:
- Your contact: ${object.create_uid.name}
- % endif
-
If you have any question, do not hesitate to contact us.
-Thank you!
-If you have any question, do not hesitate to contact us.
+Best regards,
+]]> @@ -77,55 +50,27 @@Dear +% if object.partner_id.company_type == 'company' and object.child_ids: + ${object.partner_id.child_ids[0].name} +% else : + ${object.partner_id.name} +% endif +,
+Here is a ${object.state in ('draft', 'sent') and 'request for quotation' or 'purchase order confirmation'} ${object.name} +% if object.partner_ref: + with reference: ${object.partner_ref} +% endif +% if object.origin: + (RFQ origin: ${object.origin}) +% endif +amounting ${object.amount_total} ${object.currency_id.name} +from ${object.company_id.name}. +
-Hello ${object.partner_id.name},
- -Here is a ${object.state in ('draft', 'sent') and 'request for quotation' or 'purchase order confirmation'} from ${object.company_id.name}:
- -
- REFERENCES
- Order number: ${object.name}
- Order total: ${object.amount_total} ${object.currency_id.name}
- Order date: ${object.date_order}
- % if object.origin:
- Order reference: ${object.origin}
- % endif
- % if object.partner_ref:
- Your reference: ${object.partner_ref}
- % endif
- % if object.create_uid:
- Your contact: ${object.create_uid.name}
- % endif
-
If you have any question, do not hesitate to contact us.
-Thank you!
-If you have any question, do not hesitate to contact us.
+Best regards,
+]]> diff --git a/addons/sale/data/mail_template_data.xml b/addons/sale/data/mail_template_data.xml index ee245b26aac..fa069f0fc1e 100644 --- a/addons/sale/data/mail_template_data.xml +++ b/addons/sale/data/mail_template_data.xml @@ -14,63 +14,34 @@Hello ${object.partner_id.name},
- -Here is your ${object.state in ('draft', 'sent') and 'quotation' or 'order confirmation'} from ${object.company_id.name}:
+Dear +% if object.partner_id.company_type == 'company' and object.child_ids: + ${object.partner_id.child_ids[0].name} +% else : + ${object.partner_id.name} +% endif +,
+Thank you for your inquiry.
+Here is your ${doc_name} ${object.name}
+% if object.origin:
+(with reference: ${object.origin} )
+% endif
+amounting ${object.amount_total} ${object.pricelist_id.currency_id.name}
+from ${object.company_id.name}.
+
- REFERENCES
- Order number: ${object.name}
- Order total: ${object.amount_total} ${object.pricelist_id.currency_id.name}
- Order date: ${format_tz(object.date_order, tz=user.tz, context={'lang':object.partner_id.lang})}
- % if object.origin:
- Order reference: ${object.origin}
- % endif
- % if object.client_order_ref:
- Your reference: ${object.client_order_ref}
- % endif
- % if object.user_id:
- Your contact: ${object.user_id.name}
- % endif
-
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'}!
-+ ${access_name} +
+If you have any question, do not hesitate to contact us.
+Best regards,
+]]> diff --git a/addons/website_quote/data/website_quotation_data.xml b/addons/website_quote/data/website_quotation_data.xml index bb01e321a32..042cc39f3f0 100644 --- a/addons/website_quote/data/website_quotation_data.xml +++ b/addons/website_quote/data/website_quotation_data.xml @@ -19,71 +19,6 @@ -Hello ${object.partner_id.name},
- -Here is your ${object.state in ('draft', 'sent') and 'quotation' or 'order confirmation'} from ${object.company_id.name}:
- -
- REFERENCES
- Order number: ${object.name}
- Order total: ${object.amount_total} ${object.pricelist_id.currency_id.name}
- Order date: ${object.date_order}
- % if object.origin:
- Order reference: ${object.origin}
- % endif
- % if object.client_order_ref:
- Your reference: ${object.client_order_ref}
- % endif
- % if object.user_id:
- Your contact: ${object.user_id.name}
- % endif
-
- You can view your quotation online: -
- View ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'} - - % if object.paypal_url: -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'}!
-Hello ${object.partner_id.name},
- -Here is your ${object.state in ('draft', 'sent') and 'quotation' or 'order confirmation'} from ${object.company_id.name}:
- -
- REFERENCES
- Order number: ${object.name}
- Order total: ${object.amount_total} ${object.pricelist_id.currency_id.name}
- Order date: ${object.date_order}
- % if object.origin:
- Order reference: ${object.origin}
- % endif
- % if object.client_order_ref:
- Your reference: ${object.client_order_ref}
- % endif
- % if object.user_id:
- Your contact: ${object.user_id.name}
- % endif
-
- You can access this document and pay online via our Customer Portal: -
- View ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'} - % endif - - % if object.paypal_url and object.amount_total > 0 : -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'}!
-