Hello, I am trying to set a readonly attribute to True or False for a field on an xml view if a many2one field has a certain value for that record using the domain.
Example:
<field name='some_field' attrs=" { 'readonly': [('product_id.active', '=', False )] }" />
The problem is I get an error saying:
Error: Unknown field product_id.active in domain [["product_id.active","=",False]]
Is there a way to find what the related value is for a many2one field, and set another fields attributes based on that? Thank you