Fix mising instance

This commit is contained in:
Oscar Alvarez 2020-06-09 17:46:31 -05:00
parent ff67056e0a
commit 6d39242583

View file

@ -269,8 +269,8 @@ class CustomerService(metaclass=PoolMeta):
if res['status'] == 'success':
super(CustomerService, cls).open(services)
for service in services:
if service.email or party.email:
service.send_email_notification(service.email or party.email)
if service.email or service.party.email:
service.send_email_notification(service.email or service.party.email)
service.send_emails_department()
else:
cls.cancel(services)