0 编辑 关闭 删除 标记 Odoo 15 - "name 'self' is not defined" in xml domain 编辑 关闭 删除 标记 odoo 7 十一月 2022 退订 订阅 domainxmlself 评论 分享 贴子评论 丢弃 2 答案 0 odoo 7 十一月 2022 最佳答案 You cannot use self or dot notation in the xml views. You could add a related or computed field to the model and access this value for your domain, or apply the domain in the model. 备注 分享 贴子评论 丢弃 0 odoo 8 十一月 2022 最佳答案 Thanks Jort, I made it with the Web domain field from OCA and problem solved. 备注 分享 贴子评论 丢弃