Skip to Content
मेन्यू
This question has been flagged
1 Reply
71 Views

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
0
जून 23
2101
0
अप्रैल 25
811
0
जुल॰ 22
2375
0
मई 22
1209
1
जन॰ 22
2627