From 56cfb8354051e619f0b99c81af942fb60d1cc3e6 Mon Sep 17 00:00:00 2001 From: David Alonso // Solvos Date: Mon, 19 Jun 2023 14:58:57 +0200 Subject: [PATCH] [IMP] helpdesk_mgmt: ticket - added search by title This improvement simply uses new _rec_names_search model attribute for helpdesk tickets, so in Many2one fields now it's possible to search across ticket title. --- helpdesk_mgmt/models/helpdesk_ticket.py | 1 + 1 file changed, 1 insertion(+) diff --git a/helpdesk_mgmt/models/helpdesk_ticket.py b/helpdesk_mgmt/models/helpdesk_ticket.py index 8c24a83425..39cdeb42ac 100644 --- a/helpdesk_mgmt/models/helpdesk_ticket.py +++ b/helpdesk_mgmt/models/helpdesk_ticket.py @@ -6,6 +6,7 @@ class HelpdeskTicket(models.Model): _name = "helpdesk.ticket" _description = "Helpdesk Ticket" _rec_name = "number" + _rec_names_search = ["number", "name"] _order = "priority desc, sequence, number desc, id desc" _mail_post_access = "read" _inherit = ["mail.thread.cc", "mail.activity.mixin", "portal.mixin"]