diff options
| author | Roberto López López (OpenERP) <rlo@openerp.com> | 2012-02-29 18:23:19 +0100 |
|---|---|---|
| committer | Roberto López López (OpenERP) <rlo@openerp.com> | 2012-02-29 18:23:19 +0100 |
| commit | 1ade3b205fc01dc4d476fa295d8e046a44755b19 (patch) | |
| tree | acd1a352decfb48e49d415a41f9614e36a90d2a9 /addons/google_docs/google_docs.py | |
| parent | 67ffbbac7a14a31d278043f1a5b962a41730ece1 (diff) | |
[fix]
bzr revid: rlo@openerp.com-20120229172319-rzwcu1egrhw9ggms
Diffstat (limited to 'addons/google_docs/google_docs.py')
| -rw-r--r-- | addons/google_docs/google_docs.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py index e253d62ffbb..b60acd16197 100644 --- a/addons/google_docs/google_docs.py +++ b/addons/google_docs/google_docs.py @@ -55,11 +55,12 @@ class google_docs_config(osv.osv): class google_docs(osv.osv): _name = 'google.docs' - - def doc_get(self, cr, uid, model, id, context=None): + def doc_get(self, cr, uid, model, ids, context=None): google_docs_ref = self.pool.get('google.docs.config') - gdocs_resource_id = google_docs_ref.search(cr, uid, [('model', '=', model)]) - + gdocs_resource_id = google_docs_ref.search(cr, uid, [('model', '=', model), ('id', 'in', ids)]) + #print gdocs_resource_id + #print google_docs_ref.edit_url_template % (gdocs_resource_id, ) + #import pdb; pdb.set_trace() if gdocs_resource_id: return google_docs_ref.edit_url_template % (gdocs_resource_id, ) else: |
