Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] hr_maintenance: use hr.employee -> .public when missing rights
Steps to reproduce ================== - Login as a user with no rights - Use a mobile viewport - Create a new Maintenance Request - Edit the Created By field -> A traceback occurs because the user has no rights Solution ======== We extend the Many2OneField to accept a relation option and Depending on whether the user has the rights, use the correct one. This is similar to 41eaff0 opw-3430105 closes odoo#133261 X-original-commit: e78998c Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com> Signed-off-by: Hubert Van De Walle <huvw@odoo.com>
- Loading branch information