Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
359 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
août 25
344
4
juil. 25
1688
1
juil. 25
959
2
juil. 25
985
1
juil. 25
2106