summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorDenis Ledoux <dle@openerp.com>2013-06-25 18:19:22 +0200
committerDenis Ledoux <dle@openerp.com>2013-06-25 18:19:22 +0200
commit3afc97f451d8550f18b7b54a08456f7d242888e8 (patch)
tree59264c61f1fc3ef0f70b949c0ce484e573712f6d /addons/google_docs/google_docs.py
parent0bca00c42c87c093e7ff54d7542c0f7fd083253c (diff)
[FIX&DEL]google_*: remove of now useless views and code from google_base_account, and move generic function from google_docs to google_base_account
bzr revid: dle@openerp.com-20130625161922-3u1m5qeqcj84rmq5
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),
}