add print

This commit is contained in:
Camilo Sarmiento 2020-08-05 10:52:21 -05:00
parent 51849d9a0a
commit 88784535a6
1 changed files with 1 additions and 0 deletions

View File

@ -308,6 +308,7 @@ class CustomerService(metaclass=PoolMeta):
response = Template.send(template, self, email,
attach=False, attachments=[])
if not response or response.status_code != 202:
print(email)
self.write({self}, {'notes': 'Fallo envio al correo: ' + email})
def send_emails_department(self):