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.
User Access Groups define access given to groups of users in an Odoo database. They standardize and simplify user access so that setting up a user should be fairly simple. To review Access Groups enable Developer Mode, navigate to Settings and select Users & Companies > Groups.
implied_ids are inherited group privileges. A group which inherits other groups, will get all the other groups rights in top of their own. The model behind is res. groups .
In the create window we can add the user details like name and mail id. After this, we can proceed to add the access right, Oauth, preferences, and integrate the outlook and Odoo Google calendar. The access rights can be defined for all module categories and applications installed in the database.
How to create or edit custom groups:
How to apply groups for some users:
Please note, that if you delete some technical group from custom group, then you have to repeat process of applying groups for each related users. If you don't repeat applying process then removed group would be kept in related users, because there is no way to figure out is it was added by inheritance or manually as a extra access to that user.
I managed to do it with a few hours of searching in the XMLs:
This is a Example of Security Group Create
security/ng_office_technology_security:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
<record id="office_technology_group" model="res.groups">
<field name="name">Office technology</field>
<field name="comment">Office Technology Permission Group.</field>
<field name="category_id" ref="ng_office_technology.module_category_ng_office_technology"/>
</record>
<record model="ir.module.category" id="module_category_ng_office_technology">
<field name="name">Office Technology</field>
<field name="description">The Office technology Applilcation</field>
<field name="sequence">20</field>
</record>
</data>
</openerp>
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With