odoo showing ValidateError: _description_searchable while parsing
odoo showing ValidateError: _description_searchable while parsing
在我的自定义模块中它显示错误为
ParseError: "ValidateError
Field(s) `arch` failed against a constraint: Invalid view definition
Error details:
_description_searchable" while parsing
我的代码如下,
<record model="ir.ui.view" id="room-booking-calender">
<field name="name">Book.Room</field>
<field name="model">book.meeting</field>
<field name="type">calendar</field>
<field name="arch" type="xml">
<calendar string="Booking Status" color="state" date_start="start_time" date_stop="end_time" mode="week">
<field name="name"/>
<field name="meeting_room"/>
</calendar>
</field>
</record>
我的代码运行正常,但是突然出现这个错误。如何纠正
我在使用多个计算字段时在 odoo 中发现了这个错误。大多数情况下,此错误将与计算字段相关联。检查您的字段,尤其是计算字段(在旧的 API 功能字段中)
我刚刚遇到这个错误,在我的例子中,问题是我在没有属性 compute
.
的声明字段中设置了 store=False
错误
my_field = fields.Char(
string='My field',
store=False,
)
好
my_field = fields.Char(
string='My field',
compute='_compute_my_field',
store=False,
)
在我的自定义模块中它显示错误为
ParseError: "ValidateError
Field(s) `arch` failed against a constraint: Invalid view definition
Error details:
_description_searchable" while parsing
我的代码如下,
<record model="ir.ui.view" id="room-booking-calender">
<field name="name">Book.Room</field>
<field name="model">book.meeting</field>
<field name="type">calendar</field>
<field name="arch" type="xml">
<calendar string="Booking Status" color="state" date_start="start_time" date_stop="end_time" mode="week">
<field name="name"/>
<field name="meeting_room"/>
</calendar>
</field>
</record>
我的代码运行正常,但是突然出现这个错误。如何纠正
我在使用多个计算字段时在 odoo 中发现了这个错误。大多数情况下,此错误将与计算字段相关联。检查您的字段,尤其是计算字段(在旧的 API 功能字段中)
我刚刚遇到这个错误,在我的例子中,问题是我在没有属性 compute
.
store=False
错误
my_field = fields.Char(
string='My field',
store=False,
)
好
my_field = fields.Char(
string='My field',
compute='_compute_my_field',
store=False,
)