flectra/addons/auth_oauth/data/auth_oauth_data.yml
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

7 lines
257 B
YAML

-
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')})