[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:
@@ -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 {
|
||||
|
||||
@@ -82,6 +82,10 @@
|
||||
<group string="Shared resources" name="company_share_resources" attrs="{'invisible': [('group_multi_company','=',False)]}">
|
||||
<field name="company_share_partner" class="oe_inline" />
|
||||
</group>
|
||||
<div>
|
||||
<label string="New users access rights"/>
|
||||
<button type="object" name="open_default_user" string="Edit default access rights for new users" class="oe_inline oe_link" icon="fa-cogs"/>
|
||||
</div>
|
||||
<group string="Google Integration" name="google">
|
||||
<label for="id" string="Google Drive"/>
|
||||
<div name="google_drive">
|
||||
|
||||
Reference in New Issue
Block a user