summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorDBR (OpenERP) <dbr@tinyerp.com>2013-05-22 13:02:18 +0530
committerDBR (OpenERP) <dbr@tinyerp.com>2013-05-22 13:02:18 +0530
commit6cc1b4ee83b0194f5d2a02bddebe681b26dac9da (patch)
tree0fa8b01ab968acd0e8d05eb82fbc453d3fb923a8 /addons/google_docs/google_docs.py
parent29e21608829c2d0f8d844c2fffca1d1da1f671ac (diff)
parentd51cf606167f870bb6be260ef494fc96dea05b09 (diff)
[Merge] lp:openobject-addons
bzr revid: dbr@tinyerp.com-20130522073218-o6m40rskd42idzvg
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()