Skip to Content
मेन्यू
This question has been flagged
1 Reply
2967 Views

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
Discard

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
Discard
Related Posts Replies Views Activity
0
जून 25
305
1
जून 25
1554
3
जुल॰ 25
3219
1
मई 25
1369
1
मई 25
1620