summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/google_docs/google_docs.py')
-rw-r--r--addons/google_docs/google_docs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index d6cfb3dfe4a..8b0d8f53b2e 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -215,4 +215,8 @@ class base_config_settings(osv.osv):
_columns = {
'google_docs_authorization_code': fields.char('Paste Generated "Authorization Code" from google to here', size=124),
+ 'google_docs_uri': fields.char('URI', readonly=True, help="The URL to generate the authorization code from Google"),
+ }
+ _defaults = {
+ 'google_docs_uri': lambda s, cr, uid, c: s._get_google_token_uri(cr, uid, 'docs', context=c),
}