Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1962 มุมมอง

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>



อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 24
1042
1
ส.ค. 24
3881
0
มี.ค. 22
2843
1
พ.ย. 20
8455
0
ธ.ค. 24
852