Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
1699 Visualizzazioni

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)

Avatar
Abbandona
Autore Risposta migliore

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?


Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
lug 25
665
3
giu 25
3912
5
mag 25
4596
2
mag 25
1546
1
ago 24
2134