Skip to Content
Menu
This question has been flagged
1 Reply
73 Views

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
1
Aug 25
263
4
Jul 25
1617
1
Jul 25
911
2
Jul 25
930
1
Jul 25
2038