diff --git a/helpdesk_mgmt/controllers/main.py b/helpdesk_mgmt/controllers/main.py index ab772c6883..c9f8fe00a8 100644 --- a/helpdesk_mgmt/controllers/main.py +++ b/helpdesk_mgmt/controllers/main.py @@ -70,7 +70,7 @@ def create_new_ticket(self, **kw): def _prepare_submit_ticket_vals(self, **kw): category = http.request.env["helpdesk.ticket.category"].browse( - int(kw.get("category")) + int(kw.get("category") or 0) ) company = category.company_id or http.request.env.company vals = {