Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Odoo 15 - "name 'self' is not defined" in xml domain

Avatar
odoo
Avatar
Discard
2 Answers
0
Avatar
odoo
Best Answer

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.

Avatar
Discard
0
Avatar
odoo
Best Answer

Thanks Jort, I made it with the Web domain field from OCA and problem solved.

Avatar
Discard