Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
75 Представления

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>

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
авг. 25
263
4
июл. 25
1617
1
июл. 25
911
2
июл. 25
930
1
июл. 25
2038