I want to make price_unit field in sale order line like readonly in own documents only group in sales
<field name="groups_id" eval="[(6, 0, [ref('sales_stock.group_sale_salesman') ])]"/>
i add this line in before <field name="arch" type="xml">
finally i change the price_unit field like this
<xpath expr="//notebook/page/field[@name='order_line']/tree/field[@name='price_unit']" position="attributes">
<attribute name="readonly">1</attribute>
</xpath>
The price_unit field readonly in all groups.
How can i set the field in only 1 group.??