using inselect operator to inline sql in the search method and avoid ORM to fetch multiple useless messages to check if there's one closes odoo/odoo#70410 X-original-commit: 505c7b0946689d3ac1ac4dd2f59cf4d535c36cbb Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>