i have a question for permission how can i custom a permission to give some email to approve some modules?
Exam
Manager : Can approve employee 1 but employee 1 can't see the button to action approve
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
Hello Lalips,
1 - Within your module, you can create [name_module/security/name_module_groups.xml]
<odoo>
<data noupdate="1">
<record id="group_manager" model="res.groups">
<field name="name">Manager</field>
<field name="comment">This User Is Manager.</field>
</record>
</data>
</odoo>
2 - Now you can use this group in buttons and fields to make them visible only to the manager, using groups="name_module.group_manager" Note: Replace "name_module" with the actual name of the module where group_manager was created.
<button name="funcition_aprove" string="Approve type="object" groups="name_module.group_manager"/>
Hi Lalips,
You can give a manager groups to that action approve button. So that button can visible only manager, not to that employee.
Hope this will helps you.
Hi Lalips,
In addition to Malay's answer,
In Odoo, you can control the visibility of buttons for specific groups of users using the 'groups' attribute in the button element.
For example:
Here, the button will be visible to the users who have access to 'group_name1' and 'group_name2', while for other users, it will be invisible.
For example:
<button name="button_name" string="Your Button Name" type="object" class="oe_highlight" groups="group_name1,group_name2"/>
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
1
أكتوبر 22
|
3457 | ||
|
3
يوليو 22
|
2865 | ||
|
0
سبتمبر 22
|
1924 | ||
|
1
سبتمبر 22
|
3322 | ||
|
1
يونيو 25
|
1673 |
i got it thanks you for answer me