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

Hi,

I already have a Record Rule to limit a certain user group to make only Delivery Orders, using the Picking Type model and the following code:


[('code','=','outgoing')]


But now I'm having the issue that the user in this group can't make Manufacturing Orders:

"Due to security restrictions, you are not allowed to access 'Picking Type' (stock.picking.type) records. Contact your administrator to request access if necessary."


How can I adapt this Record Rule to allow manufacturing and also limit those activities to a specific warehouse?

Thanks.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Change the domain filter to include both outgoing transfers and manufacturing operations and to limit activities to a specific warehouse.

['|', '|',

    ('code', '=', 'outgoing'),

    ('code', '=', 'mrp_operation'),

    '&',

        ('warehouse_id', '=', 1),

        ('code', 'in', ['outgoing', 'mrp_operation'])

]


You can adjust the warehouse ID to match the specific warehouse you want to limit access to.


Hope it helps

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

Perfect, thanks.!

Related Posts ตอบกลับ มุมมอง กิจกรรม
Automatic Batch Transfer แก้ไขแล้ว
1
ส.ค. 25
512
1
พ.ค. 25
1317
0
พ.ย. 24
1415
2
ต.ค. 24
1498
0
ส.ค. 24
1248