跳至内容
菜单
此问题已终结
4 回复
8428 查看

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


形象
丢弃
相关帖文 回复 查看 活动
0
3月 24
1154
0
7月 25
377
4
7月 25
4677
0
9月 24
1039
3
8月 23
3918