My initial goal was to highlight (change color of) a field label in a form view, for specific stages (NOT states). It looks like that is not yet supported (please correct me if I am wrong) so I moved on to making a field required based on what stage the document is in. In my case I am working with leads/opportunities. This post on stack overflow highlights how to do this with states, but I cannot seem to get it to work with stages. I have tried the following:
<field name="field_name" attrs="{'required':[('stage_id','=','new')]}"/>
(No results)
<field name="field_name" attrs="{'required':[('stage_id','=','1')]}"/>
(No results)
<field name="field_name" attrs="{'required':[('stage_id.name','=','New')]}"/>
(Error Unknown field stage_id.name in domain)
Is this even possible?