[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:
Barad Mahendra
2018-05-25 16:23:54 +02:00
committed by Thibault Delavallée
parent 419b4659ca
commit bd4daccb9b
+1 -1
View File
@@ -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):