diff options
| author | Yannick Tivisse <yti@odoo.com> | 2017-11-16 14:50:31 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-11-16 14:50:31 +0100 |
| commit | cf853a785ba4b533ddb2e8a717c9ffa6429e7b81 (patch) | |
| tree | 67ac961e809a16d2faa990b20da54c3bd1bc5f96 /addons/auth_oauth/data/auth_oauth_data.xml | |
| parent | 7bfb87b7a8af01e8e14e69588c51e108404e3833 (diff) | |
| parent | 77eb1f82d96777f6b152abe39d133955d669bc95 (diff) | |
[MERGE] Convert remaining yml files and remove yml import engine
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> |
