diff --git a/helpdesk_mgmt/__manifest__.py b/helpdesk_mgmt/__manifest__.py index 9bb93c2a90..7d3520df89 100644 --- a/helpdesk_mgmt/__manifest__.py +++ b/helpdesk_mgmt/__manifest__.py @@ -17,6 +17,7 @@ "depends": ["mail", "portal"], "data": [ "data/helpdesk_data.xml", + "data/ir_config_parameter.xml", "security/helpdesk_security.xml", "security/ir.model.access.csv", "views/res_partner_views.xml", diff --git a/helpdesk_mgmt/controllers/main.py b/helpdesk_mgmt/controllers/main.py index 4c43176d0c..8dbdade976 100644 --- a/helpdesk_mgmt/controllers/main.py +++ b/helpdesk_mgmt/controllers/main.py @@ -66,6 +66,7 @@ def _prepare_submit_ticket_vals(self, **kw): "description": plaintext2html(kw.get("description")), "name": kw.get("subject"), "attachment_ids": False, + "stage_id": request.env.ref("helpdesk_mgmt.helpdesk_ticket_stage_new").id, "channel_id": request.env["helpdesk.ticket.channel"] .sudo() .search([("name", "=", "Web")]) diff --git a/helpdesk_mgmt/data/helpdesk_data.xml b/helpdesk_mgmt/data/helpdesk_data.xml index 5e43f8eea7..5fc5aad88d 100644 --- a/helpdesk_mgmt/data/helpdesk_data.xml +++ b/helpdesk_mgmt/data/helpdesk_data.xml @@ -14,7 +14,7 @@ ${object.company_id.partner_id.email} ${not object.partner_id and object.partner_email or ''|safe}, The ticket ${object.number} has been closed. ${object.partner_id.id} @@ -22,60 +22,46 @@ ${object.partner_id.lang} - - - - - - - - - - - - - - - - - - - - - - - Hello ${object.partner_id.name or object.partner_name or ''}, - The ticket "${object.display_name}" has been closed. - - - - - - - - - - - - ${object.company_id.phone} - - - ${object.company_id.email} - - - ${object.company_id.website} - - - - - - - - -
Hello ${object.partner_id.name or object.partner_name or ''},
The ticket "${object.display_name}" has been closed.