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

In my company, there are 30 warehouses. all users can access all warehouses. But  I want to assign user to each respective warehouse. I do not want to show others.

อวตาร
ละทิ้ง

For those who faced the same requirement: this app - https://apps.odoo.com/apps/modules/15.0/stock_limitation/ - lets assign users for stock locations

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

I did all the steps below, but the user gets the following error when creating a pre-invoice or purchase order. How can I solve this problem?

psycopg2.DataError: invalid input syntax for integer: "w.id for w in user.x_warehouse_ids"
LINE 1: ...mpany_id" in (1)) AND ("stock_warehouse"."id" in ('w.id for ...


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

it works perfect , thanks for support

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

This has to be done using record rules and access groups. Refer the Odoo documentation in the below link

https://www.odoo.com/documentation/15.0/developer/howtos/rdtraining/B_acl_irrules.html


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 24
1246
0
ก.ค. 25
449
How to prevent negative stock in Odoo18? แก้ไขแล้ว
4
ส.ค. 25
5360
0
ก.ย. 24
1128
3
ส.ค. 23
4074