Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2965 Tampilan

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
Buang

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

Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jun 25
304
1
Jun 25
1547
3
Jul 25
3216
1
Mei 25
1368
1
Mei 25
1617