Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2966 Vistas

Hello,

I'm trying to develop a new apps at Odoo 15 env, when I came to create a security groups for users an error happened while applying these update :
odoo.tools.convert.ParseError: while parsing /home/yaser/work15/library/library_app/security/library_security.xml:4, somewhere inside....


the code is : 


 



Manager
ref="base.module_category_services_library "/>
eval="[(4, ref('base.group_user'))]"/>
eval="[(4, ref('base.user_root')),
(4, ref('base.user_admin'))]"/>


 


Any help?

Avatar
Descartar

This might be due to any syntax issue on the xml file on which you defined the usergroup.
You can refer to the blog below.

https://www.cybrosys.com/blog/how-to-create-security-groups-in-odoo-15

Mejor respuesta

Hi,

It seems the added code is not get added properly along with the question, so if are trying to create an user group in odoo, you can achieve it as follows:


<record id="group_account_user" model="res.groups">
<field name="name">Show Full Accounting Featuresfield>
<field name="category_id" ref="base.module_category_hidden"/>
<field name="implied_ids" eval="[(4, ref('group_account_invoice')), (4, ref('group_account_readonly'))]"/>
record>



Most likely in the code, that you have added will have some syntax issue in it, comparing it with above, easily you can trace it.


Thanks

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
jun 25
305
1
jun 25
1554
3
jul 25
3218
1
may 25
1369
1
may 25
1620