[IMP] mass_mailing: reset schedule_date when canceling mass mailing
Otherwise if you make a mistake, cancel and reschedule a mass mailing schedule date is not correctly set.
This commit is contained in:
committed by
Thibault Delavallée
parent
419b4659ca
commit
bd4daccb9b
@@ -650,7 +650,7 @@ class MassMailing(models.Model):
|
||||
|
||||
@api.multi
|
||||
def cancel_mass_mailing(self):
|
||||
self.write({'state': 'draft'})
|
||||
self.write({'state': 'draft', 'schedule_date': False})
|
||||
|
||||
@api.multi
|
||||
def retry_failed_mail(self):
|
||||
|
||||
Reference in New Issue
Block a user