How to do it...

To add a field with access limited to specific security groups, perform the following steps:

  1. Edit the model file to add the field:
private_notes = fields.Text(groups='base.group_system') 
  1. Edit the view in the XML file to add the field:
<field name="private_notes" /> 

That's it. Now, upgrade the addon module for the changes in the model to take place. If you sign in with a user with no system configuration access, such as demo in a database with demonstration data, the Library Books form won't display the field.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.65.247