diff options
| author | Yannick Tivisse <yti@odoo.com> | 2016-08-23 09:28:07 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-08-23 11:14:37 +0200 |
| commit | ff63f5d0a37a502df420b48656c8d0beb19cb00a (patch) | |
| tree | 79fdbdce04ee921971ff0ec4ba70c9170ca72869 /addons/base_setup/models | |
| parent | 92a60f1340f0122e31807fef1ca80ec196b9c7d5 (diff) | |
[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
Diffstat (limited to 'addons/base_setup/models')
| -rw-r--r-- | addons/base_setup/models/res_config.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/base_setup/models/res_config.py b/addons/base_setup/models/res_config.py index 246900e0e75..d30a2771a5d 100644 --- a/addons/base_setup/models/res_config.py +++ b/addons/base_setup/models/res_config.py @@ -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 { |
