Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
8 ตอบกลับ
4896 มุมมอง

Hi.

I tried to organize our company's warehouses and locations to the desired structure from our company's point of view to locations such that, (Input, Stock, Packing, and Output).

Then I defined a separate record rule for each location, to differentiate between each location moves and the others. Foe a while, everything was going well, but surprisingly, it get a strange error for the storekeeper ...

"AccessError

The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

(Document type: stock.move, Operation: read) "

From the first glance I expected that the record rule missed the read permission, but that was wrong. The record rules have the four permissions set!

I tried also to put anything in this record rule, and it does the same behavior!

Can anyone help?

Regards,

อวตาร
ละทิ้ง

Specify the record rule you have given

ผู้เขียน

['&', ('location_id', 'ilike', 'Output'), '&', ('location_dest_id','ilike', 'Customers'), ('picking_type_id', 'ilike', 'Delivery Orders')]

ผู้เขียน

and it has the full CRUD privileges!

on which object did you create your record rule?

ผู้เขียน

on stock.moves

I think it is a bug in Odoo.

ผู้เขียน

Why this site is not supporting in such a bug?

คำตอบที่ดีที่สุด

Hi Rami,

Try adding the "stock.moves"  object in the "Access Right" of the group your logged in user belongs to and assign CRUD access to it.

Thanks
Pawan

อวตาร
ละทิ้ง
ผู้เขียน

The user is already in the default warehouse user group, which by default has this access rights.

so are u assigning that rule also to warehouse group only?

Related Posts ตอบกลับ มุมมอง กิจกรรม
Security groups and record rules แก้ไขแล้ว
1
พ.ย. 24
1644
How to increase the security of Odoo ? แก้ไขแล้ว
2
ก.ย. 23
26770
0
ส.ค. 21
2522
Restrict access by company แก้ไขแล้ว
1
มิ.ย. 19
4401
0
มี.ค. 15
4259