Hello, can everyone please help me to give access rights to user to read their branch stocks.
I have the data in my main company, but it shows on the sub-branches, and each branch has different users, but the same product in each branch. I want the user can see their own branch's stock
I don't want to perform this operation on the inventory products which are already available in the company_id. I don't want to perform this alternative method Can someone guide me on how is it possible to give only access to user to see their own branch stocks
Thank you.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
Hi,
By using record rules, you can restrict the stock access.
1- Enable developer mode.
2- Navigate to Settings → Technical → Record Rules.
3- Configure the new Rule:
Name: e.g., "Restrict Stock by Branch"
Model: Select stock.quant (or the relevant model you wish to restrict).
Domain Filter: Set a domain that filters records based on the user's assigned warehouse.
Groups: Assign the rule to the appropriate user groups.
In the domain, you need to add the condition.
your_branch_field:- Refers to the branch field defined in the model (eg: stock.quant)
user.branch_field:- Refers to the branch assigned to the user.
You can also set access rights and user groups for this rule.
For more information, refer to the following: https://www.cybrosys.com/blog/how-to-create-record-rules-in-odoo-18
Hope it helps
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
0
مارس 25
|
578 | ||
|
1
فبراير 25
|
758 | ||
Stock managing
تم الحل
|
|
1
يناير 25
|
711 | |
|
0
يناير 25
|
625 | ||
|
0
نوفمبر 24
|
10 |
Perhaps, this third-party module - https://apps.odoo.com/apps/modules/18.0/stock_limitation - might be helpful to your needs.