Skip to content
Snippets Groups Projects
Commit e542c412 authored by Thibault Francois's avatar Thibault Francois
Browse files

[FIX] hr: search on employee_id field raise bad query


Problem
-------
A user with no read access on private employee (hr.employee) model
will get a bad query error if he search on employee_id on res.users

The new domain evaluation system generate query like this
SELECT "hr_employee"."user_id" FROM "hr_employee_public"
because the _search of hr.employee was not returning the search result
from the right table

Solution
--------
Return a search result from the right table

closes odoo/odoo#62944

Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 158e9469
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment