diff options
Diffstat (limited to 'addons/auth_oauth/data/auth_oauth_data.xml')
| -rw-r--r-- | addons/auth_oauth/data/auth_oauth_data.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/auth_oauth/data/auth_oauth_data.xml b/addons/auth_oauth/data/auth_oauth_data.xml index 1b1ff532ae4..e2d061611f5 100644 --- a/addons/auth_oauth/data/auth_oauth_data.xml +++ b/addons/auth_oauth/data/auth_oauth_data.xml @@ -29,5 +29,13 @@ <field name="css_class">fa fa-google-plus-square</field> <field name="body">Log in with Google</field> </record> + + <!-- Use database uuid as client_id for OpenERP oauth provider --> + <function model="auth.oauth.provider" name="write"> + <value eval="[ref('auth_oauth.provider_openerp')]"/> + <value model="ir.config_parameter" eval="{ + 'client_id': obj().env['ir.config_parameter'].get_param('database.uuid'), + }"/> + </function> </data> </odoo> |
