Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
203 Widoki

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>

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sie 25
320
4
lip 25
1664
1
lip 25
946
2
lip 25
961
1
lip 25
2084