remove prints

This commit is contained in:
Elvis 2023-11-13 20:38:24 -05:00
parent ed38bd18f1
commit 1155bccfdc

View file

@ -413,12 +413,6 @@ class CustomerService(metaclass=PoolMeta):
@classmethod @classmethod
def search_current_risk(cls, name, clause): def search_current_risk(cls, name, clause):
# pool = Pool()
# CustomerService = pool.get('crm.customer_service')
# customer_service = CustomerService.__table__()
# query = customer_service.select(customer_service.id)
# datetime.today()-(datecustomer_service.cs_date))
print(clause[2], 'este es mi clause')
cursor = Transaction().connection.cursor() cursor = Transaction().connection.cursor()
if clause[2] == 'Higher': if clause[2] == 'Higher':
query = f"""select id from crm_customer_service where (state='open' AND media='supersalud') AND query = f"""select id from crm_customer_service where (state='open' AND media='supersalud') AND
@ -436,7 +430,6 @@ class CustomerService(metaclass=PoolMeta):
result = cursor.fetchall() result = cursor.fetchall()
ids = [tupla[0] for tupla in result] ids = [tupla[0] for tupla in result]
return [('id', 'in', ids)] return [('id', 'in', ids)]
# return [('id', 'in', query)]
def send_email_customer(self, template, attachments=[]): def send_email_customer(self, template, attachments=[]):
if self.department_region and self.department_region.emails: if self.department_region and self.department_region.emails: