Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
142 Näkymät

Can someone help me with the following error? I'm following the odoo18 developer documentation and am trying to create my first interface following the real estate example provided. I'm working with odoo in Docker, and the error is as follows:


Error de servidor de Odoo

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2992, in convert_to_cache
    raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for ir.ui.view.type: 'tree'

The above exception was the direct cause of the following exception:

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 557, in _tag_root
    raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing /mnt/extra-addons/inmobiliaria/views/real_estate_views.xml:13, somewhere inside
<record id="view_real_estate_property_tree" model="ir.ui.view">
        <field name="name">real.estate.property.tree</field>
        <field name="model">real.estate.property</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name"/>
                <field name="postcode"/>
                <field name="bedrooms"/>
                <field name="expected_price"/>
                <field name="selling_price"/>
            </tree>
        </field>
    </record>

Avatar
Hylkää
Paras vastaus

Tree has been changed to List in Odoo 18 and above.

Where do we still need to update our documentation?

This page, for example, has been updated https://www.odoo.com/documentation/18.0/developer/tutorials/server_framework_101/06_basicviews.html

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
elok. 25
298
4
heinäk. 25
1633
1
heinäk. 25
923
2
heinäk. 25
938
1
heinäk. 25
2052