Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
121 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 23
2112
0
thg 4 25
823
0
thg 7 22
2387
0
thg 5 22
1229
1
thg 2 22
2636