当我转到“设置”并单击用户和公司来创建用户或组时,我收到此错误:
Error while validating view near:
<field name="employee_ids" invisible="1"/>
<field name="employee_id" invisible="1"/>
<button string="Create employee" type="object" name="action_create_employee" attrs="{'invisible': ['|', '|', ('id', '=', False), ('share', '=', True), ('employee_id', '!=', False)]}"/>
<!-- share is not correctly recomputed because it depends on fields of reified view => invisible before saving (id=False) -->
</header>
Field "is_admin" does not exist in model "res.users"
请记住,我没有添加任何自定义编码,我只是使用 Odoo studio 构建了一个应用程序,我只为计算字段添加了自定义编码,例如:
for record in self:
record['x_vaccancies'] = len(record['x_studio_one2many_field_t0PSY'])
for shop in record.x_studio_one2many_field_t0PSY:
if shop.x_studio_selection_field_I8q1t == "rented":
record['x_vaccancies'] -= 1
有人遇到过这个问题吗?
尝试更新基本模块。也许这个可以帮助你。
这个舞台上的分贝是否超过 1 分贝?看起来像在另一个数据库中,您在模型“res.users”中安装了带有此字段“is_admin”的自定义模块,该模块未安装在当前数据库中。