diff options
| author | Darshil Trivedi <dat@odoo.com> | 2018-05-18 17:16:45 +0530 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2018-08-28 15:36:27 +0200 |
| commit | 19e62fa7c3ba1c21089274785063e8b72943e7de (patch) | |
| tree | d29296a664a30f4631a4afe0d596cbb5c04e69cf | |
| parent | 6d6009c0e0c2997a55f021f00ab870ea88801d64 (diff) | |
[IMP] purchase: clean mail template
Usability change:
- Remove amount from RFQ template
- Remove origin from both templates
- Modify last sentence to a proper English
- Add partner reference in PO template
Technically remove the conidtion on object state in
order to guess if it's a RFQ or a PO since the check
is already made in python and it exists a template
for the RFQ and a template for PO.
This commit is related to task ID 1835441
| -rw-r--r-- | addons/purchase/data/mail_template_data.xml | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/addons/purchase/data/mail_template_data.xml b/addons/purchase/data/mail_template_data.xml index b5f7fb33024..860bcf494b9 100644 --- a/addons/purchase/data/mail_template_data.xml +++ b/addons/purchase/data/mail_template_data.xml @@ -14,19 +14,15 @@ % if object.partner_id.parent_id: (${object.partner_id.parent_id.name}) % endif - <br /><br /> - Here is in attachment a ${object.state in ('draft', 'sent') and 'request for quotation' or 'purchase order'} <strong>${object.name}</strong> + <br/><br/> + Here is in attachment a request for quotation <strong>${object.name}</strong> % if object.partner_ref: with reference: ${object.partner_ref} % endif - % if object.origin: - (RFQ origin: ${object.origin}) - % endif - amounting in <strong>${format_amount(object.amount_total, object.currency_id)}</strong> from ${object.company_id.name}. - <br /><br /> - Do not hesitate to contact us if you have any question. - <br /><br /> + <br/><br/> + If you have any questions, please do not hesitate to contact us. + <br/><br/> Best regards, </p> </div></field> @@ -50,19 +46,16 @@ % if object.partner_id.parent_id: (${object.partner_id.parent_id.name}) % endif - <br /><br /> - Here is in attachment a ${object.state in ('draft', 'sent') and 'request for quotation' or 'purchase order'} <strong>${object.name}</strong> + <br/><br/> + Here is in attachment a purchase order <strong>${object.name}</strong> % if object.partner_ref: with reference: ${object.partner_ref} % endif - % if object.origin: - (RFQ origin: ${object.origin}) - % endif amounting in <strong>${format_amount(object.amount_total, object.currency_id)}</strong> from ${object.company_id.name}. - <br /><br /> - Do not hesitate to contact us if you have any question. - <br /><br /> + <br/><br/> + If you have any questions, please do not hesitate to contact us. + <br/><br/> Best regards, </p> </div></field> |
