Hi,
Vincent
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!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухоблік
- Склад
- PoS
- Project
- MRP
Це запитання позначене
1006
Переглядів
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація