[IMP] improve configuration warning and disription of the module

bzr revid: tpa@tinyerp.com-20130604062948-vi0j5pzi5s2agjp9
This commit is contained in:
Turkesh Patel (Open ERP) 2013-06-04 11:59:48 +05:30
parent 0784c33c38
commit ed3509568d
2 changed files with 5 additions and 6 deletions

View File

@ -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"
"""
}

View File

@ -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):