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

Please provide resolution for the error : AssertionError: Element odoo has extra content: text, line 1 generated while running ODOO 16 server for the following security.xml file :

<odoo>

  

    

    <record id="library_group_user" model="res.groups">

      <field name="name">Userfield>

      <field name="category_id" ref="base.module_category_services_library"/>

      <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>

    record>

    <record id="library_group_manager" model="res.groups">

      <field name="name">Managerfield>

      <field name="category_id" ref="base.module_category_services_library"/>

      <field name="implied_ids" eval="[(4, ref('library_group_user'))]"/>

      <field name="users" eval="[(4, ref('base.user_root')),(4, ref('base.user_admin'))]"/>

    record>

  

odoo>



Avatar
Descartar
Best Answer

Hi,

It seems to be fine for me, only issue can be did you defined a module category with this external ID:  module_category_services_library ? also check the other contents in the file, as shared code is fine, i believe the missing tags in the post is due to the forum issue


<record id="library_group_user" model="res.groups">
<field name="name">Userfieldfield>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
record>

<record id="library_group_manager" model="res.groups">
<field name="name">Managerfieldfield>
<field name="implied_ids" eval="[(4, ref('library_group_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root')),(4, ref('base.user_admin'))]"/>
record>


Thanks

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’oct. 24
1051
1
d’ag. 24
3885
0
de març 22
2847
1
de nov. 20
8462
0
de des. 24
857