In a search method, the error comes from the user and thus the error should be an UserError. ValueError should be used for other cases. closes odoo/odoo#93944 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
In a search method, the error comes from the user and thus the error should be an UserError. ValueError should be used for other cases. closes odoo/odoo#93944 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>