-
- Downloads
[IMP] sms: add a is_mail_thread_sms field allowing to filter models
PURPOSE SMS are a powerful marketing tool. For instance it is perfect to announce a sale or to communicate a coupon code, to welcome a new customer in a fidelity program, ... Purpose of this task is to integrate SMS sending in batch in mass mailing. It will use same mailing objects but sending SMS instead of emails. Some metrics and flows will have to be slightly updated at the same time. SPECIFICATIONS Limit use of templates to models that are really capable of sending SMS. Templates are now available on models that inherit from mail.thread and effectively have fields used in SMS sending. Technically this is done through a not stored field on ir.model that is searchable. SMS sending capabilities is based on * having fields holding phone numbers, as defined on mail.thread in SMS; * having fields holding partners, as defined on mail.thread in SMS; This implied some code rewriting notably about finding default SMS recipients on a given model, in order to have fields instead of directly returning partners. LINKS Task 1997464 PR #34424 Original SMS addition: Task 1922163 (4287481b)
Showing
- addons/calendar/models/calendar.py 1 addition, 1 deletionaddons/calendar/models/calendar.py
- addons/hr/models/hr_employee.py 2 additions, 2 deletionsaddons/hr/models/hr_employee.py
- addons/sms/models/__init__.py 1 addition, 0 deletionsaddons/sms/models/__init__.py
- addons/sms/models/ir_model.py 39 additions, 0 deletionsaddons/sms/models/ir_model.py
- addons/sms/models/mail_thread.py 14 additions, 4 deletionsaddons/sms/models/mail_thread.py
- addons/sms/models/sms_template.py 1 addition, 1 deletionaddons/sms/models/sms_template.py
- addons/test_mail_full/models/test_mail_models.py 4 additions, 4 deletionsaddons/test_mail_full/models/test_mail_models.py
Loading
Please register or sign in to comment