跳至内容
菜单
此问题已终结
1 回复
88 查看

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.

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
0
6月 23
2107
0
4月 25
814
0
7月 22
2380
0
5月 22
1209
1
1月 22
2634