I thought I had seen a post about making a field read only if a certain condition were true, but now I can't find that post. This is what I'm trying:
<field name="price_unit" attrs="{'readonly': ['product_id.name_template','!=','Shipping']}"/>
(This is in the sale order lines tree.) I'm getting this error:
Error: Unknown field S in domain ["product_id.name_template","!=","Shipping"]
Do I just have a syntax problem, or am I just going about this the wrong way?