تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2518 أدوات العرض

Hello,

We're using Odoo version 16.0, and we're experiencing a problem with the "Calendar" application. 

When someone creates an event as an organizer, he doesn't receive any email related to his event (Date updated, Event Update, Meeting Invitation, Reminder). All attendees receive the emails without any hassle.


This is not a problem linked to the SMTP server configuration, as all the other attendees receive the emails without a hitch.


However, the template configuration seems correct because, for example, the 'To (Emails)' value of the 'Calendar: Event Update' template is equal to "{{ object._get_attendee_emails() }}". As the organizer is one of the attendees by default, he should receive the email. When previewing the templates on a test event, we can see that an email should be sent to the organizer.


Maybe I missed something? If you have an idea to solve this problem ... 


Thank you in advance for your help.

Kind regards.


الصورة الرمزية
إهمال

I have the same problem.

أفضل إجابة

Hi,

This is by design in Odoo, as there is a method called '_should_notify_attendee', where current user is explicitly excluded.

You can change this behavior by overriding the calendar.attendee with following code:

class Attendee(models.Model):
_inherit = 'calendar.attendee'

def _should_notify_attendee(self):
""" override base Utility method that determines if the attendee should be notified. """
self.ensure_one()
return True # we want to notify current user also



الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 25
1399
1
أبريل 24
1423
0
ديسمبر 23
1486
Odoo App تم الحل
1
نوفمبر 23
1993
0
نوفمبر 23
993