Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
8418 Widoki

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.

Awatar
Odrzuć

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

Najlepsza odpowiedź

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


Awatar
Odrzuć
Najlepsza odpowiedź

it works perfect , thanks for support

Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 24
1143
0
lip 25
365
4
lip 25
4623
0
wrz 24
1023
3
sie 23
3893