From 9f2b498a8a1cce679d5b9078d1d200cdc8c3ea4a Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Fri, 17 Aug 2012 00:55:37 +0200 Subject: [PATCH] [FIX] auth_config bzr revid: al@openerp.com-20120816225537-7ghb97togd1bjidl --- addons/auth_oauth/res_config.py | 7 ++++--- addons/auth_oauth/res_config_view.xml | 29 +++++++++++++++++++-------- addons/base_setup/res_config.py | 4 ++-- addons/base_setup/res_config_view.xml | 11 +--------- addons/mail/res_config_view.xml | 2 +- 5 files changed, 29 insertions(+), 24 deletions(-) diff --git a/addons/auth_oauth/res_config.py b/addons/auth_oauth/res_config.py index 0c660aa585c..4a218d98165 100644 --- a/addons/auth_oauth/res_config.py +++ b/addons/auth_oauth/res_config.py @@ -25,8 +25,9 @@ class project_configuration(osv.TransientModel): _inherit = 'base.config.settings' _columns = { - 'explanation' : fields.text('Deployment Explanation',), - 'client_id' : fields.char('Client ID'), + 'auth_oauth_google_active' : fields.boolean('enable sign in with google'), + 'auth_oauth_google_client_id' : fields.char('Google client_id'), + 'auth_oauth_facebook_client_id' : fields.char('Facebook client_id'), } # def get_default_alias_domain(self, cr, uid, ids, context=None): @@ -35,4 +36,4 @@ class project_configuration(osv.TransientModel): # def set_alias_domain(self, cr, uid, ids, context=None): # config_parameters = self.pool.get("ir.config_parameter") # for record in self.browse(cr, uid, ids, context=context): - # config_parameters.set_param(cr, uid, "mail.catchall.domain", record.alias_domain or '', context=context) \ No newline at end of file + # config_parameters.set_param(cr, uid, "mail.catchall.domain", record.alias_domain or '', context=context) diff --git a/addons/auth_oauth/res_config_view.xml b/addons/auth_oauth/res_config_view.xml index c892c8ac5e4..5744dfaa8a2 100644 --- a/addons/auth_oauth/res_config_view.xml +++ b/addons/auth_oauth/res_config_view.xml @@ -1,17 +1,30 @@ - + - + base.config.auth.oauth - model - base.config.settings + base.config.settings - - - \ No newline at end of file + diff --git a/addons/base_setup/res_config.py b/addons/base_setup/res_config.py index a14b42c97bf..556b1010bf2 100644 --- a/addons/base_setup/res_config.py +++ b/addons/base_setup/res_config.py @@ -32,8 +32,8 @@ class base_config_settings(osv.osv_memory): help="""The portal will give access to a series of documents for your customers; his quotations, his invoices, his projects, etc."""), 'module_share': fields.boolean('allow documents sharing', help="""As an example, you will be able to share a project or some tasks to your customers, or quotes/sales to several persons at your customer company, or your agenda availabilities to your contacts."""), - 'module_auth_signup': fields.boolean('allow new users to sign up'), - 'module_auth_oauth': fields.boolean('external oauth authentfication (google, facebook, ...)'), + 'module_auth_signup': fields.boolean('allow external users to sign up'), + 'module_auth_oauth': fields.boolean('external authentication, login with google, facebook, ...'), } def open_company(self, cr, uid, ids, context=None): diff --git a/addons/base_setup/res_config_view.xml b/addons/base_setup/res_config_view.xml index 91196c7e834..14c0615d206 100644 --- a/addons/base_setup/res_config_view.xml +++ b/addons/base_setup/res_config_view.xml @@ -38,21 +38,12 @@ - - -