Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2347 Переглядів

Hello, 


I want to add new group under other tab in Odoo 17 , beside the  Bypass HTML Field Sanitize group


Аватар
Відмінити
Найкраща відповідь

Define a New Group in XML
Create an XML file in your custom module, e.g., security/user_groups.xml.

Specify the category_id for the "Other" Tab
The "Other" tab usually has a category already created by Odoo. You’ll want to link your new group to the same category.


<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="group_new_feature" model="res.groups">
        <field name="name">New Feature Access</field>
        <!-- This will display the group in the "Other" tab -->
        <field name="category_id" ref="base.module_category_hidden"/>
    </record>
</odoo>

Include the XML File in Your Module

Add your XML file to the module’s __manifest__.py:

'data': [
    'security/user_groups.xml',
],


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лип. 25
778
0
лист. 24
1391
0
жовт. 24
1721
0
жовт. 24
1408
0
жовт. 24
1155