diff options
| author | Denis Ledoux <dle@openerp.com> | 2013-06-25 18:19:22 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@openerp.com> | 2013-06-25 18:19:22 +0200 |
| commit | 3afc97f451d8550f18b7b54a08456f7d242888e8 (patch) | |
| tree | 59264c61f1fc3ef0f70b949c0ce484e573712f6d /addons/google_docs | |
| parent | 0bca00c42c87c093e7ff54d7542c0f7fd083253c (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')
| -rw-r--r-- | addons/google_docs/google_docs.py | 4 | ||||
| -rw-r--r-- | addons/google_docs/res_config_user_view.xml | 5 |
2 files changed, 7 insertions, 2 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), } diff --git a/addons/google_docs/res_config_user_view.xml b/addons/google_docs/res_config_user_view.xml index 50560be4a11..560c36cc99c 100644 --- a/addons/google_docs/res_config_user_view.xml +++ b/addons/google_docs/res_config_user_view.xml @@ -76,8 +76,9 @@ <xpath expr="//div[@name='google_docs']" position="after"> <div attrs="{'invisible': [('module_google_docs','=',False)]}"> <p class="oe_gray" > - <!-- Need to generate client id, redirect url from Google Account (API console) and replace below link. Limitation on Number of request: 10 lacks per day. --> - Click here to <a href="https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/drive&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&client_id=39623646228-eg3ggo3mk6o40m7rguobi3rkl9frh4tb.apps.googleusercontent.com" target="_blank"><b>Generate Google Authorization Code</b></a><br/> + <div class="oe_inline"> + Click here to <field name="google_docs_uri" widget="url" text="Generate Google Authorization Code" class="oe_inline oe_bold"/> + </div> <group> <field name="google_docs_authorization_code" on_change="onchange_google_authorization_code('docs', google_docs_authorization_code)"/>'' </group> |
