Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1975 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
říj 24
1054
1
srp 24
3887
0
bře 22
2849
1
lis 20
8462
0
pro 24
857