[ADD] Helpdesk create task from ticket #2
@@ -5,22 +5,10 @@ class HelpdeskTicketControllerRequestType(HelpdeskTicketController):
|
|||||||
|
|||||||
|
|
||||||
@http.route("/new/ticket", type="http", auth="user", website=True)
|
@http.route("/new/ticket", type="http", auth="user", website=True)
|
||||||
def create_new_ticket(self, **kw):
|
def create_new_ticket(self, **kw):
|
||||||
categories = http.request.env["helpdesk.ticket.category"].search(
|
res = super(HelpdeskTicketControllerRequestType, self).create_new_ticket(**kw)
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
[("active", "=", True)]
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
)
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
request_types = http.request.env["helpdesk.request.type"].search([])
|
request_types = http.request.env["helpdesk.request.type"].search([])
|
||||||
email = http.request.env.user.email
|
res.qcontext["request_types"] = request_types
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
name = http.request.env.user.name
|
return res
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
return http.request.render(
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
"helpdesk_mgmt.portal_create_ticket",
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
{
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
"categories": categories,
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
"teams": self._get_teams(),
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
"email": email,
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
"name": name,
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
"request_types": request_types
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
},
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
)
|
|
||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
|||||||
|
|
||||||
def _prepare_submit_ticket_vals(self, **kw):
|
def _prepare_submit_ticket_vals(self, **kw):
|
||||||
res = super()._prepare_submit_ticket_vals(**kw)
|
res = super()._prepare_submit_ticket_vals(**kw)
|
||||||
|
|||||||
![]() to be deleted as from another PR ? to be deleted as from another PR ?
![]() to be deleted as from another PR ? to be deleted as from another PR ?
|
Reference in New Issue
Block a user
to be deleted as from another PR ?
to be deleted as from another PR ?