diff --git a/customer_service.py b/customer_service.py index 5a7ad3d..4945537 100644 --- a/customer_service.py +++ b/customer_service.py @@ -230,7 +230,7 @@ class CustomerService(metaclass=PoolMeta): service.get_message(message) return res - if service.media != 'supersalud': + if service.media == 'web': Attachment = Pool().get('ir.attachment') attachments = Attachment.search([ ('resource', '=', 'crm.customer_service,' + str(service.id))