summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>2013-04-17 11:56:40 +0530
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>2013-04-17 11:56:40 +0530
commit9ea1b238bf0f79f2ee74bf028a90659a06f02f30 (patch)
treec56c01acdf489b5bde6b87cd3703ab7e9076bd48 /addons/google_docs/google_docs.py
parentc4ef5d2f6cc801de0b5bf96b0a7b606506b001a0 (diff)
parentd92f8821ef7db35311f23206b40a1d78b3b535d4 (diff)
[MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20130417062640-0b8at1f087grtiu3
Diffstat (limited to 'addons/google_docs/google_docs.py')
-rw-r--r--addons/google_docs/google_docs.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index cdb14de1de3..2fd1976ae3b 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -155,7 +155,7 @@ class google_docs_ir_attachment(osv.osv):
pool_ir_attachment = self.pool.get('ir.attachment')
pool_gdoc_config = self.pool.get('google.docs.config')
name_gdocs = ''
- model_fields_dic = self.pool.get(res_model).read(cr, uid, res_id, [], context=context)
+ model_fields_dic = self.pool[res_model].read(cr, uid, res_id, [], context=context)
# check if a model is configured with a template
google_docs_config = pool_gdoc_config.search(cr, uid, [('model_id', '=', res_model)], context=context)
@@ -191,4 +191,3 @@ This is the id of the template document, on google side. You can find it thanks
_defaults = {
'name_template': 'gdoc_%(name)s',
}
-config()