Skip to Content
Menu
This question has been flagged
762 Views

Hi,

Currently, when we create a calendar event from meetings tab of the customer form, Odoo send automaticaly an email to the customer.

I would like to ask to the user if he wants to send en email to the customer or not.

For that i found :

- the code of the quick create calendar_view : t-name="CalendarView.quick_create"
in src/odoo/addons/web/static/src/xml/web_calendar.xml

- the js code for the button create in : src/odoo/addons/web/static/src/js/views/calendar/calendar_quick_create.js

- the function _send_mail_to_attendees in : src/odoo/addons/calendar/models/calendar.py
In this function, email is not sent if the context is "no_mail_to_attendees"


Also my question is, how to ask "Do you want to send email to the customer?" to the user ?
If the answer is yes, we continue
If the answer is no, we pass context "no_mail_to_attendees" to the function _send_mail_to_attendees to not send the email

Can anybody help me to do that or anything else if it is not the right way!

Vincent
Avatar
Discard