minor fix

This commit is contained in:
Camilo Sarmiento 2020-08-05 10:50:39 -05:00
parent 2fd845e14c
commit 51849d9a0a
1 changed files with 1 additions and 1 deletions

View File

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