Commit 38d3fb9c by Arturo Jasso Origel

ajustes en politicas sla

parent 6a12fd10
......@@ -1040,7 +1040,7 @@ class PortalHelpdeskMorsa(PortalHelpdesk):
ticket_id.attachment_ids = [(6, 0, attachment_ids)]
return werkzeug.utils.redirect("/my/soporte?ctr=False")
return request.redirect("/my/soporte?ctr=False")
except Exception as e:
_logger.exception('Something went wrong %s',str(e))
......@@ -1155,7 +1155,7 @@ class PortalHelpdeskMorsa(PortalHelpdesk):
})
attachment_ids.append(attachment_id.id)
ticket_id.attachment_ids = [(6, 0, attachment_ids)]
return werkzeug.utils.redirect("/my/erp?ctr=False")
return request.redirect("/my/erp?ctr=False")
except Exception as e:
_logger.exception('Something went wrong %s',str(e))
......@@ -1234,7 +1234,7 @@ class PortalHelpdeskMorsa(PortalHelpdesk):
})
attachment_ids.append(attachment_id.id)
ticket_id.attachment_ids = [(6, 0, attachment_ids)]
return werkzeug.utils.redirect("/my/911?ctr=False")
return request.redirect("/my/911?ctr=False")
except Exception as e:
_logger.exception('Something went wrong %s',str(e))
......
......@@ -320,8 +320,8 @@ class HelpdeskTicket(models.Model):
def append_sla_policies(self):
sla = self.env['sh.helpdesk.sla'].search([
('sh_team_id','=',self.team_id.id),
('sh_ticket_type_id','=',self.ticket_type.id)
('sh_sla_target_type','=','reaching_stage')
('sh_ticket_type_id','=',self.ticket_type.id),
('sh_sla_target_type','=','reaching_stage'),
('sh_stage_id','!=',self.stage_id.id)
]).ids
if sla:
......
......@@ -6,12 +6,8 @@
<t t-call="portal.portal_searchbar">
<t t-set="title">TI 911</t>
<div class="form-inline ml-lg-4">
<a id="new_request" class="btn btn-secondary btn-sm" style="color:#FFFFFF" name="new_request" title="Create Support Request" aria-label="Create Support Request" role="button"><i class="fa fa-plus" />Crear Ticket</a>
</div>
<input type="hidden" name="mdl_shw" id="mdl_shw" t-att-value="created"/>
</t>
<input type="hidden" name="mdl_shw" id="mdl_shw" t-att-value="created"/>
<div id="createticketModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
......
......@@ -7,12 +7,8 @@
<t t-call="portal.portal_searchbar">
<t t-set="title">Asistencia ERP</t>
<div class="form-inline ml-lg-4">
<a id="new_request" class="btn btn-secondary btn-sm" style="color:#FFFFFF" name="new_request" title="Create Support Request" aria-label="Create Support Request" role="button" ><i class="fa fa-plus" />Crear Ticket</a>
</div>
<input type="hidden" name="mdl_shw" id="mdl_shw" t-att-value="created"/>
</t>
<input type="hidden" name="mdl_shw" id="mdl_shw" t-att-value="created"/>
<div id="createticketModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
......
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