From 2d5aefb72f2541e150070ab7623f092fb54c7fed Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Thu, 9 Nov 2017 10:28:34 +0100 Subject: [PATCH] [IMP] auth_oauth: Convert yml data file to xml --- addons/auth_oauth/__manifest__.py | 1 - addons/auth_oauth/data/auth_oauth_data.xml | 8 ++++++++ addons/auth_oauth/data/auth_oauth_data.yml | 6 ------ 3 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 addons/auth_oauth/data/auth_oauth_data.yml diff --git a/addons/auth_oauth/__manifest__.py b/addons/auth_oauth/__manifest__.py index c78134cb078..4f63d517262 100644 --- a/addons/auth_oauth/__manifest__.py +++ b/addons/auth_oauth/__manifest__.py @@ -12,7 +12,6 @@ Allow users to login through OAuth2 Provider. 'depends': ['base', 'web', 'base_setup', 'auth_signup'], 'data': [ 'data/auth_oauth_data.xml', - 'data/auth_oauth_data.yml', 'views/auth_oauth_views.xml', 'views/res_users_views.xml', 'views/res_config_settings_views.xml', 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 @@ fa fa-google-plus-square Log in with Google + + + + + + diff --git a/addons/auth_oauth/data/auth_oauth_data.yml b/addons/auth_oauth/data/auth_oauth_data.yml deleted file mode 100644 index 5ec3a53009b..00000000000 --- a/addons/auth_oauth/data/auth_oauth_data.yml +++ /dev/null @@ -1,6 +0,0 @@ -- - 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')})