This commit adds a way to configure scheduled emails on events. It replaces existing automatic emails at confirmation and subscription. It proposes to configure some schedulers, based on subscription or event, using a template and a configurable timedelta. A cron is added that regularly checks for event mailing schedulers to execute and launch them. The granularity of send emails is therefore limited to the granularity of the cron, aka 1 hour. [TEST] Added tests for this feature. Also cleaned a bit event, country_id is now a pure related instead of a computed field trying to be a related. Also removed default templates on event category. Configuration in the event itself should be easy enough for most use cases.
12 lines
1.1 KiB
CSV
12 lines
1.1 KiB
CSV
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
|
access_event_type,event.type,model_event_type,event.group_event_user,1,0,0,0
|
|
access_event_type_manager,event.type manager,model_event_type,event.group_event_manager,1,1,1,1
|
|
access_event_event,event.event,model_event_event,event.group_event_user,1,1,1,1
|
|
access_event_registration,event.registration,model_event_registration,event.group_event_user,1,1,1,1
|
|
access_report_event_registration,report.event.registration,model_report_event_registration,event.group_event_user,1,1,1,1
|
|
access_event_event_portal,event.event,model_event_event,,1,0,0,0
|
|
access_event_registration_portal,event.registration,model_event_registration,,1,0,0,0
|
|
access_event_mail,event.mail,model_event_mail,event.group_event_user,1,0,0,0
|
|
access_event_mail_manager,event.mail manager,model_event_mail,event.group_event_manager,1,1,1,1
|
|
access_event_mail_registration,event.mail.registration,model_event_mail_registration,event.group_event_user,1,0,0,0
|
|
access_event_mail_registration_manager,event.mail.registration.manager,model_event_mail_registration,event.group_event_manager,1,1,1,1 |