Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2970 Widoki

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?

Awatar
Odrzuć

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

Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
cze 25
308
1
cze 25
1564
3
lip 25
3227
1
maj 25
1376
1
maj 25
1627