openerp 7 issues fields_view_get method
Based on user particular Field readonly applied using field_view_get method
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): res = super(class_name,self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu) if 'filed_name' in res['fields'] and uid!=1: res['fields']['filed_name']['readonly'] = True return res
The code worked in version 6.0.4 but in the latest version 7 not working. How to make works?...