[16.0][FIX] tracking_manager: Avoid error when accessing the value of a field that we do not have access
Avoid error when accessing the value of a field that we do not have access
Example use case:
- Install
hr_fleet - Set the
employee_idsfield ofhr.employeeas a tracking field - Modify the user to not have permissions in Fleet
- Modify the name of an employee
Please @pedrobaeza and @chienandalu can you review it?
@Tecnativa TT51160
Hi @Kev-Roche, @sebastienbeau, some modules you are maintaining are being modified, check this out!
Can you add a regression test?
Can you add a regression test?
I have tried to do it but it is not possible (it is necessary a relationship with one2many that can be created/modified in that model and that some of the fields are limited with groups). I have taken the opportunity to add a test of the use case of https://github.com/OCA/server-tools/pull/3051
On my way to merge this fine PR! Prepared branch 16.0-ocabot-merge-pr-3051-by-pedrobaeza-bump-patch, awaiting test results.
Congratulations, your PR was merged at 33277135b484f690ae53529cd9e8d6681ddf7f2e. Thanks a lot for contributing to OCA. ❤️