[IMP] base_setup: Allow the admin to modify the default user acess rights

Add a link in the general settings to access easily the default_user form view in order to modify the default access rights

The default_user manager rights declarations in all the applications have been move in a noupdate="1" definition to avoid the manual configuration overwrittings
This commit is contained in:
Yannick Tivisse
2016-08-23 11:14:37 +02:00
parent 92a60f1340
commit ff63f5d0a3
16 changed files with 71 additions and 49 deletions
+8
View File
@@ -44,6 +44,14 @@ class BaseConfigSettings(models.TransientModel):
'target': 'current',
}
@api.multi
def open_default_user(self):
action = self.env.ref('base.action_res_users').read()[0]
action['context'] = self.env.context
action['res_id'] = self.env.ref('base.default_user').id
action['views'] = [[self.env.ref('base.view_users_form').id, 'form']]
return action
@api.model
def get_default_company_share_partner(self, fields):
return {