Hello Odoo Community,
I am using Odoo 16 and and I want to add the group named 'smarten_access_management.group_planning_branch_incharge' to given button in the gannt view of Planning Slot.
The same code worked well in Odoo15 but it is throwing given error in Odoo16.
I am looking forward to your response.
Thank you.
The code is
planning.group_planning_manager,smarten_access_management.group_planning_branch_incharge attribute>
The Error is
Field 'state' used in attrs ({'invisible': ['|', ('state', '=', 'published'), ('resource_type', '=', 'material')]}) is restricted to the group(s) planning.group_planning_manager.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
Hi,
The above mentioned error is due to the state field used in the attrs is restricted to that planning.group_planning_manager group only.
In order to fix this issue, you can modify the field access in the field definition .Add the smarten_access_management.group_planning_branch_incharge group to the groups attribute alongside the existing planning.group_planning_manager group.
state = fields.Char(
...
groups="planning.group_planning_manager,smarten_access_management.group_planning_branch_incharge",
)
hope this will help you
thanks
Sorry It didn't work.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
3
أغسطس 25
|
2631 | ||
|
1
مايو 25
|
2653 | ||
|
1
أبريل 25
|
3639 | ||
|
1
أبريل 25
|
4502 | ||
|
1
أبريل 25
|
1966 |