Search code examples
odooodoo-8openerp-8

Creating New Groups in Odoo


I have created a new Groups which is a Personnel Group, But in the View Metadata the new Group I've created has no XML ID, where can I find the XML ID or add the XML ID of the new groups even in the external ID menu I cannot find the ID.


Solution

  • If you have created group manualy from UI it will not show the xml id because record is not created by xml record. if the record is created by the demo data(xml) it will show the XML ID of the record

    for example,

    <record id="user_group_id" model="res.groups">
        <field name="name">User Group</field>
        <field name="category_id" ref="base.module_category_sales_management"/>
    </record>
    

    Here user_group_id is your xml id. All the xml id is stored in ir_model_data table or 'ir.model.data'.

    You can find under Settings > Technical > Sequences & Identifiers > External identifiers

    hope this helps.