summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-04-23 17:29:43 +0200
committerChristophe Matthieu <chm@openerp.com>2013-04-23 17:29:43 +0200
commit300a2aaeeec4147c4d543a0142ba61bd558036bf (patch)
treefec46071455255c24260d3186ac1d5a6b23a1355 /addons/google_docs/google_docs.py
parent809ec6e49f0eb328f318ce08e4baa2a87fa3db67 (diff)
parent8590e68b2b399394c8b0541e885949fc40bca898 (diff)
[MERGE] from trunk
bzr revid: chm@openerp.com-20130423152943-8qbm6nhc9ubds5td
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()