[IMP] event_mail_manual:
use super function
This commit is contained in:
@@ -10,11 +10,10 @@ class EventMail(models.Model):
|
|||||||
|
|
||||||
notification_type = fields.Selection(selection_add=[('mail_manual', 'Mail (manual)')], ondelete={'mail_manual': 'set default'})
|
notification_type = fields.Selection(selection_add=[('mail_manual', 'Mail (manual)')], ondelete={'mail_manual': 'set default'})
|
||||||
|
|
||||||
|
|
||||||
def _selection_template_model_get_mapping(self):
|
def _selection_template_model_get_mapping(self):
|
||||||
return {
|
return {**super(EventMail, self)._selection_template_model_get_mapping(), 'mail_manual': 'mail.template'}
|
||||||
'mail': 'mail.template',
|
|
||||||
'mail_manual': 'mail.template'
|
|
||||||
}
|
|
||||||
|
|
||||||
@api.depends('event_id.date_begin', 'event_id.date_end', 'interval_type', 'interval_unit', 'interval_nbr','notification_type')
|
@api.depends('event_id.date_begin', 'event_id.date_end', 'interval_type', 'interval_unit', 'interval_nbr','notification_type')
|
||||||
def _compute_scheduled_date(self):
|
def _compute_scheduled_date(self):
|
||||||
@@ -77,3 +76,5 @@ class EventMailRegistration(models.Model):
|
|||||||
done.write({'mail_sent': True})
|
done.write({'mail_sent': True})
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user