diff options
| author | Fabien Pinckaers <fp@openerp.com> | 2020-05-28 13:18:18 +0000 |
|---|---|---|
| committer | yhu-odoo <yhu@odoo.com> | 2020-06-09 13:59:10 +0000 |
| commit | ccfc54113da51e2d137b994649417cec0d80c1fa (patch) | |
| tree | a0d6ab4c1bd35eff23201eb3e2075ddd08d58e69 /addons/purchase/data/mail_template_data.xml | |
| parent | d3d0fd7c59992239834ae9749a89a984f57fc727 (diff) | |
[IMP] purchase: Improve reminder mail usability
Some change to imporve reminder mail usability:
1. Scheduled date on POL of the PO form now is always editable.
2. Improve tooltip for the reminder email
3. don't show number of days when reminder email not checked on
both PO and partner form.
4. only show "confirm receipt date" button in debug model
5. In the mail, format date by partner.lang
6. Add button to send preview reminder mail
7. On default, receipt_reminder_email on res.partner is False
8. merge expected_date with date_planned (done by FP)
Task 2265912
PR #52693
Diffstat (limited to 'addons/purchase/data/mail_template_data.xml')
| -rw-r--r-- | addons/purchase/data/mail_template_data.xml | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/addons/purchase/data/mail_template_data.xml b/addons/purchase/data/mail_template_data.xml index 35bd59cf12c..f60c96c6d0b 100644 --- a/addons/purchase/data/mail_template_data.xml +++ b/addons/purchase/data/mail_template_data.xml @@ -50,13 +50,9 @@ % endif amounting in <strong>${format_amount(object.amount_total, object.currency_id)}</strong> from ${object.company_id.name}. - % if object.date_planned or object.expected_date: - The receipt is planned for - % if object.date_planned: - <strong>${object.date_planned.date()}</strong>. - % elif object.expected_date: - <strong>${object.expected_date.date()}</strong>. - % endif + <br/><br/> + % if object.date_planned: + The receipt is expected for <strong>${format_date(object.date_planned)}</strong>. <br/><br/> Could you please acknowledge the receipt of this order? % endif @@ -82,13 +78,15 @@ (${object.partner_id.parent_id.name}) % endif <br/><br/> - Here is a reminder that the delivery of the purchase order <strong>${object.name}</strong> is planned for + Here is a reminder that the delivery of the purchase order <strong>${object.name}</strong> + % if object.partner_ref: + <strong>(${object.partner_ref})</strong> + % endif + is expected for % if object.date_planned: - <strong>${object.date_planned.date()}</strong>. - % else: - <strong>${object.expected_date.date()}</strong>. + <strong>${format_date(object.date_planned)}</strong>. % endif - Could you please confirm it will be on time? + Could you please confirm it will be delivered on time? </p> </div></field> <field name="report_template" ref="action_report_purchase_order"/> |
