diff options
| author | Paramjit Singh Sahota <psa@tinyerp.com> | 2013-04-11 18:08:08 +0530 |
|---|---|---|
| committer | Paramjit Singh Sahota <psa@tinyerp.com> | 2013-04-11 18:08:08 +0530 |
| commit | 1a2e7c01ffe27200697c55de82328ba3c1168d8b (patch) | |
| tree | 782816df87ba66dc9e3eb325df961811514a36c3 /addons/google_docs/google_docs.py | |
| parent | 5bbffbc39c899adb92d251a3c8ef7f06e39338a7 (diff) | |
| parent | 385f4dbaaa71e4ff6adef6ad2209b25134e95025 (diff) | |
[MERGE] Merged lp:openobject-addons
bzr revid: psa@tinyerp.com-20130411123808-1bmkyv5h042r672a
Diffstat (limited to 'addons/google_docs/google_docs.py')
| -rw-r--r-- | addons/google_docs/google_docs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py index cdb14de1de3..3b060e199c0 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) |
