I want to make the field A readonly for the customer group which is a new group i have created.
I tried this but it didnt work. Is there another way to do this or a way to keep track of the logged in user in the xml view?
attrs="{'readonly': [('groups', 'in', [crm.customer_group])]}"">
I have tried creating a boolean field and using it to make fields read only but there is no way for my python file to tell the boolean field in xml to become true based on user login.
I tried @Cybrosys Tech method but that doesn't render the field for any other group just the one mentioned in the groups tag. Anyway to dynamically change the readonly for field A based on loggedIn user's group?