How Can i make "move_lines" readonly when stock_picking state!='draft' and for the perticular user group
i had tried this but not working
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="sim_view_picking_form" model="ir.ui.view">
<field name="name">sim.stock.picking.form</field>
<field name="model">stock.picking.out</field>
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page/field[@name='move_lines']" position="attributes">
<attribute name="attrs">{'readonly': [('state','!=','draft')]}</attribute>
</xpath>
</field>
</record>
</data>
</openerp>