跳至內容
選單
此問題已被標幟
2 回覆
1670 瀏覽次數

I got this error

RPC_ERROR


Odoo Server Error


Occured on localhost:8069 on model ir.module.module and id 71 on 2025-02-21 05:25:23 GMT


Traceback (most recent call last):

  File "C:\Program Files\Odoo 18.0.20250212\server\odoo\tools\convert.py", line 550, in _tag_root

    raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (

odoo.tools.convert.ParseError: while parsing file:/c:/program%20files/odoo%2018.0.20250212/server/odoo/addons/real_estate1/security/res_groups.xml:4, somewhere inside

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

            <field name="name">Estate Manager</field>

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

        </record>


The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    RPC_ERROR

        at makeErrorFromResponse (http://localhost:8069/web/assets/debug/web.assets_web.js:29699:19) (/web/static/src/core/network/rpc.js:34)

        at XMLHttpRequest.<anonymous> (http://localhost:8069/web/assets/debug/web.assets_web.js:29753:27) (/web/static/src/core/network/rpc.js:88)

頭像
捨棄
作者 最佳答案

This is my res_group.xml file 

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">
<record id="x_estate_manager" model="res.groups">
<field name="name">Estate Manager</field>
<field name="category_id" ref="base.module_category_real_estate"/>
</record>
</data>
</odoo>
Should i add the xml file which one you are send to me?


頭像
捨棄
最佳答案

Manually Define the Category If the category does not exist, add this record to your res_groups.xml file before defining the x_estate_manager group:


<record id="module_category_real_estate" model="ir.module.category"> <field name="name">Real Estate</field> <field name="sequence" eval="10"/> </record>

Then, update your group definition like this:

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

    <field name="name">Estate Manager</field>

    <field name="category_id" ref="module_category_real_estate"/>

</record>


try this

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
7月 25
625
3
6月 25
3855
5
5月 25
4548
2
5月 25
1528
1
8月 24
2113