From 4085f1f1f34988025190ab31bf8964ce88c7d90f Mon Sep 17 00:00:00 2001 From: Camilo Sarmiento Date: Fri, 11 Sep 2020 11:18:02 -0500 Subject: [PATCH] minor correction --- customer_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))