HI Guys,
How can I use variables available to the form to be used in the lines on the same form. I have the variable defined at the parent mode of "can_approve" and would like to use this in the attrs of a line level field to make readonly (code shown below):
<notebook>
<page string="Claim Details">
<field name="lines">
<tree create="true" delete="true" editable="true">
<field name='part_name' attrs="{'readonly':[('can_approve','=', True)]}" />
<field name='actual_amt' />
<field name='actual_price_unit' />
<field name='actual_qty'/>
</tree>
</field>
</page>
</notebook>
thoughts?
Thanks,
Damien