[ADD] Helpdesk create task from ticket #2

Merged
mondot merged 3 commits from helpdesk_create_task_from_ticket into 16.0 2025-02-10 20:32:55 +00:00
Showing only changes of commit 7b695b51dd - Show all commits

View File

@@ -5,22 +5,10 @@ class HelpdeskTicketControllerRequestType(HelpdeskTicketController):
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
@http.route("/new/ticket", type="http", auth="user", website=True)
def create_new_ticket(self, **kw):
categories = http.request.env["helpdesk.ticket.category"].search(
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
[("active", "=", True)]
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
)
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
res = super(HelpdeskTicketControllerRequestType, self).create_new_ticket(**kw)
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
request_types = http.request.env["helpdesk.request.type"].search([])
email = http.request.env.user.email
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
name = http.request.env.user.name
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
return http.request.render(
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
"helpdesk_mgmt.portal_create_ticket",
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
{
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
"categories": categories,
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
"teams": self._get_teams(),
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
"email": email,
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
"name": name,
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
"request_types": request_types
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
},
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
)
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
res.qcontext["request_types"] = request_types
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
return res
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
def _prepare_submit_ticket_vals(self, **kw):
res = super()._prepare_submit_ticket_vals(**kw)
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?
stephansainleger commented 2025-02-07 09:38:39 +00:00 (Migrated from github.com)
Review

to be deleted as from another PR ?

to be deleted as from another PR ?