Commit 623a24ce by Arturo Jasso Origel

se agrego descripción de solución en caso de que no tenga para que permita cerrar el ticket

parent bdc5b07e
...@@ -90,7 +90,8 @@ class PortalHelpdeskMorsa(PortalHelpdesk): ...@@ -90,7 +90,8 @@ class PortalHelpdeskMorsa(PortalHelpdesk):
try: try:
ticket = request.env['helpdesk.ticket'].sudo().browse(int(kw.get('ticket_id'))) ticket = request.env['helpdesk.ticket'].sudo().browse(int(kw.get('ticket_id')))
if ticket: if ticket:
ticket.sudo().update({'descripcion_solution':"Cerrado por el usuario"}) if not ticket.descripcion_solution:
ticket.sudo().update({'descripcion_solution':"Cerrado por el usuario"})
ticket.sudo().done_and_close() ticket.sudo().done_and_close()
except Exception as e: except Exception as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment