diff options
| author | Raphael Collet <rco@openerp.com> | 2013-03-29 15:37:20 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2013-03-29 15:37:20 +0100 |
| commit | 96ad6088540cc4cea5ea656f9350623cfecbc4a5 (patch) | |
| tree | e3559385110ff961f5519f1dff2c258406e2d9c0 /addons/google_docs | |
| parent | c88ee699e248a3b267b61b6dbffcbe9224c0bceb (diff) | |
[IMP] general: use registry[X] instead registry.get(X) when X is dynamic
bzr revid: rco@openerp.com-20130329143720-80pkd4csemlk1aqz
Diffstat (limited to 'addons/google_docs')
| -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) |
