From ed3509568d0212a976344a626892bc56b666fd57 Mon Sep 17 00:00:00 2001 From: "Turkesh Patel (Open ERP)" Date: Tue, 4 Jun 2013 11:59:48 +0530 Subject: [PATCH] [IMP] improve configuration warning and disription of the module bzr revid: tpa@tinyerp.com-20130604062948-vi0j5pzi5s2agjp9 --- addons/google_docs/__openerp__.py | 9 ++++----- addons/google_docs/google_docs.py | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/addons/google_docs/__openerp__.py b/addons/google_docs/__openerp__.py index 6b7f28116ec..2536edb823b 100644 --- a/addons/google_docs/__openerp__.py +++ b/addons/google_docs/__openerp__.py @@ -41,11 +41,10 @@ ], 'depends': ['base_setup'], 'description': """ -Integrate Google document with OpenERP. -======================================= +Integrate google document to OpenERP record. +============================================ -This module is used to integrate google document to OpenERP record. - -You can configure google accounts from Settings > Users > Users. +This module allows you to integrate google documents to any of your OpenERP record quickly and easily using OAuth 2.0 for Installed Applications, +You can configure your google Authorization Code from Settings > Configuration > General Settings by clicking on "Generate Google Authorization Code" """ } diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py index 93274ba6d24..63a3a423a34 100644 --- a/addons/google_docs/google_docs.py +++ b/addons/google_docs/google_docs.py @@ -102,7 +102,7 @@ class config(osv.osv): attach_pool.create(cr, uid, attach_vals) res = content['alternateLink'] else: - raise self.pool.get('res.config.settings').get_config_warning(cr, _("You haven't configured 'Authorization Code' generated from google, Please generate and configure it in %%(menu:base_setup.menu_general_configuration)s."), context=context) + raise self.pool.get('res.config.settings').get_config_warning(cr, _("You haven't configured 'Authorization Code' generated from google, Please generate and configure it in %(menu:base_setup.menu_general_configuration)s."), context=context) return res def get_google_docs_config(self, cr, uid, res_model, res_id, context=None):