Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
123 Visninger

In module Fleet on Odoo CE 18, there are 2 access rights as below:

  • Office: Manage all vehicles
  • Administrator

Why I set up my account with the fleet's access right as Office: Manage all vehicles, I only see the vehicles that I create by myself or that I am a driver.

The actual function is not like the display name of this access right.

Is it a bug or not? Because it makes the user be in conflict.

Avatar
Kassér
Bedste svar

Hi,


In Odoo 18 CE – Fleet, the role “Office: Manage all vehicles” is misleading. Despite its name, users with this access right only see vehicles they created or where they are the driver, because of restrictive record rules. It’s not a bug, but a mismatch between the label and actual permissions. To fix it, you need to adjust the record rules on the fleet.vehicle model so office users can truly see and manage all vehicles.

* If you really want “Office” users to see all vehicles, you need to go to Settings → Technical → Security → Record Rules and adjust or remove the restrictive rules applied to the fleet.vehicle model.

* Alternatively, you can duplicate the role and assign it a new set of rules that allow full read/write access without filtering by user_id or driver_id.


Reference:

* https://www.cybrosys.com/blog/how-to-create-record-rules-in-odoo-18

* https://www.odoo.com/documentation/18.0/developer/reference/backend/security.html


Hope it helps

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
jun. 23
2112
0
apr. 25
823
0
jul. 22
2387
0
maj 22
1229
1
feb. 22
2636