Skip to Content
Menú
This question has been flagged
1 Respondre
2972 Vistes

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

Best Answer

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
Related Posts Respostes Vistes Activitat
0
de juny 25
308
1
de juny 25
1567
3
de jul. 25
3227
1
de maig 25
1378
1
de maig 25
1627