summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorParth Gajjar (Open ERP) <pga@tinyerp.com>2013-05-22 15:58:57 +0530
committerParth Gajjar (Open ERP) <pga@tinyerp.com>2013-05-22 15:58:57 +0530
commitb4e6c2109c715c66e14e6f99446fda6da7e5b433 (patch)
tree499b4d7e59e7da1bd43fe16f9b20bcb15187449c /addons/google_docs/google_docs.py
parent17da5c010609bc74cb69a1331a16d6a2e426d110 (diff)
[IMP]Google client id in ir.config_parameter
bzr revid: pga@tinyerp.com-20130522102857-fehfsdks1fq3zc1i
Diffstat (limited to 'addons/google_docs/google_docs.py')
-rw-r--r--addons/google_docs/google_docs.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index f3d3ad72198..aea5ec35037 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -126,8 +126,8 @@ class config(osv.osv):
def _client_id_get(self, cr, uid, ids, name, arg, context=None):
result = {}
for config_id in ids:
- user = self.pool.get('res.users').browse(cr, SUPERUSER_ID, uid)
- result[config_id] = user.company_id.google_client_id
+ config = self.pool['ir.config_parameter']
+ result[config_id] = config.get_param(cr, SUPERUSER_ID, 'google_client_id')
return result
_columns = {
@@ -163,9 +163,3 @@ class config(osv.osv):
]
config()
-
-class res_company(osv.osv):
- _inherit = "res.company"
- _columns = {
- 'google_client_id': fields.char('Google Client ID', size=200, help="Go to 'Google APIs console' and create 'OAuth 2.0 Client ID'."),
- } \ No newline at end of file