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

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.

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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 ...


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

it works perfect , thanks for support

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

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 24
1216
0
thg 7 25
422
4
thg 7 25
5094
0
thg 9 24
1082
3
thg 8 23
4015