Hello. I´m trying to allow access to a group of users that I created, but I can´t know how to give access rights.
I have a group maker /security/groups.security.xml with this code that works:
In other file, in /security/aula10.security.xml I have the specific records for rules:
And for the view aula10_alumno I added the group to menuitem:
and for the specific tree view:
<fieldname="groups_id"eval="[(4, ref('grupo_maestros'))]"/>
The problem is that when I see from Odoo in the group, the menus, the views and rules appears, but i haven´t had
nothing in the access rights section.
I think this is the cause because the user "Trini", that is in "grupo_maestros", can´t see the "alumno" menuitem. I think if the access rights are empty, even having menus rights, the menu not appears.
Can you explain me how to give these access rights with code? I know that I can do the same via Odoo interface, but is important perform this by code.
Thanks for your help.
Groups and Access Rights in Odoo: http://learnopenerp.blogspot.com/2018/01/groups-and-access-rights-in-odoo.html