diff options
| author | fw-bot <otis@odoo.com> | 2019-11-14 15:17:05 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-11-15 10:30:01 +0000 |
| commit | c5570c4e7d18453825125de00f0a00418cb07c48 (patch) | |
| tree | 8b84f380a1b5883d0cc47633c840fcaa49a3d7b8 /addons/snailmail_account | |
| parent | bf87b4a758b3518e9a467f79879dacb0cb4f61c1 (diff) | |
[FIX] calendar: fix wrong date for recurring event emails
Reproduce this bug
- Install Calendar
- Create a recurring event starting at the date of yesterday
(later than your actual time)
- Set the recurrency to every day, 1 time (today)
- Click on the today's event
- Add attendees > Invitations > Send mail
- Run the mail queue manually (Technical > Scheduled actions)
The mail you sent are for the date of yesterday
The behavior is the same for the reminders
Cause
The mail are sent with the `_send_mail_to_attendees` method
who pass the attendee_id to the templates.
The `attendee_id.event_id` is always the first one.
This commit pass the correct event to the template via the context.
I replaced only the dates values in the template.
closes odoo/odoo#40320
X-original-commit: 1926c6cfea0e21842fbd71fd85629b13fce9b413
Signed-off-by: Jason Van Malder <jasonvanmalder@users.noreply.github.com>
Diffstat (limited to 'addons/snailmail_account')
0 files changed, 0 insertions, 0 deletions
