Files
odoo_source/addons/hr_maintenance
Hubert Van de Walle (huvw) c2b93f7f0e [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 41eaff0f4c17

opw-3430105

closes odoo/odoo#133261

X-original-commit: e78998c2951ec906fbccbe24e3fa454711a37c2b
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
Signed-off-by: Hubert Van De Walle <huvw@odoo.com>
2023-08-28 20:14:44 +00:00
..
…