flectra/addons/auth_oauth/data/auth_oauth_data.yml

7 lines
257 B
YAML
Raw Permalink Normal View History

-
Use database uuid as client_id for OpenERP oauth provider
-
!python {model: ir.config_parameter, id: False}: |
oauth = self.env['auth.oauth.provider']
oauth.browse(ref('provider_openerp')).write({'client_id': self.get_param('database.uuid')})