[FIX] web_linkedin: link (in) the config_parameter with the correct group
This commit is contained in:
parent
6e15fb060a
commit
1f5d135e44
|
@ -52,7 +52,7 @@ class web_linkedin_settings(osv.osv_memory):
|
||||||
|
|
||||||
def set_linkedin(self, cr, uid, ids, context=None):
|
def set_linkedin(self, cr, uid, ids, context=None):
|
||||||
key = self.browse(cr, uid, ids[0], context)["api_key"] or ""
|
key = self.browse(cr, uid, ids[0], context)["api_key"] or ""
|
||||||
self.pool.get("ir.config_parameter").set_param(cr, uid, "web.linkedin.apikey", key, groups=['base.group_users'])
|
self.pool.get("ir.config_parameter").set_param(cr, uid, "web.linkedin.apikey", key, groups=['base.group_user'])
|
||||||
|
|
||||||
class web_linkedin_fields(osv.Model):
|
class web_linkedin_fields(osv.Model):
|
||||||
_inherit = 'res.partner'
|
_inherit = 'res.partner'
|
||||||
|
|
Loading…
Reference in New Issue