コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
126 ビュー

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
2113
0
4月 25
825
0
7月 22
2389
0
5月 22
1229
1
2月 22
2636