0

我也不太习惯 Odoo 15,我只是跳进了新版本。我不明白 Odoo 13 上的这种错误(它不是我的代码)它有效。

id_xml 是一个字符字段,但我无法想象它因此。

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 643, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /opt/Odoo/Custom_Addon/modul-x_invoice-master/views/x_invoice.xml:149
Error while validating view near:

<search string="Search X Invoice" __validate__="1">
        <field name="id_xml" domain="['|',('id_xml','ilike', self)]"/>
        <field name="order_reference_id" domain="['|',('order_reference_id','ilike', self)]"/>
        <field name="registration_name" domain="['|',('registration_name','ilike', self)]"/>
        <field name="issue_date" domain="['|',('issue_date','ilike', self)]"/>

Domain on non-relational field "id_xml" makes no sense (domain:['|',('id_xml','ilike', self)])

View error context:
{'file': '/opt/Odoo/Custom_Addon/modul-x_invoice-master/views/x_invoice.xml',
 'line': 3,
 'name': 'X Invoice Search',
 'view': ir.ui.view(1205,),
 'view.model': 'x.invoice',
 'view.parent': ir.ui.view(),
 'xmlid': 'x_invoice_search_view'}
4

0 回答 0