diff options
| author | Turkesh Patel (Open ERP) <tpa@tinyerp.com> | 2013-04-17 12:10:25 +0530 |
|---|---|---|
| committer | Turkesh Patel (Open ERP) <tpa@tinyerp.com> | 2013-04-17 12:10:25 +0530 |
| commit | e9a4fcf647f05aad47f9afbe7857087f77a2f403 (patch) | |
| tree | b8aaebfc639ddf58da18070dafd4cdb637fe8f2c /addons/google_docs/google_docs.py | |
| parent | 3a8272359acc8928bd6825890fcdbf4b0468e932 (diff) | |
| parent | d92f8821ef7db35311f23206b40a1d78b3b535d4 (diff) | |
[MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20130417064025-hlyugvdeiiwrqjiy
Diffstat (limited to 'addons/google_docs/google_docs.py')
| -rw-r--r-- | addons/google_docs/google_docs.py | 3 |
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() |
