summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorRoberto López López (OpenERP) <rlo@openerp.com>2012-02-24 14:54:58 +0100
committerRoberto López López (OpenERP) <rlo@openerp.com>2012-02-24 14:54:58 +0100
commit33c3e277b6b496f8aa1c5a22c244390e29a6fba5 (patch)
treea7cf8fe75f8d33da97dbd0c282d158ac06c668ba /addons/google_docs/google_docs.py
parent2df3400a35696a0a95925edd1592c2467e9802a7 (diff)
[fix]
bzr revid: rlo@openerp.com-20120224135458-2bz5k9fyyjymylye
Diffstat (limited to 'addons/google_docs/google_docs.py')
-rw-r--r--addons/google_docs/google_docs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index d4f48edb91a..0ad64124d04 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -88,7 +88,7 @@ class google_docs(osv.osv):
client.http_client.debug = False
client.ClientLogin(user.gmail_user, user.gmail_password, client.source, service='writely')
- return map(lambda doc: (doc.title.text, doc.resource_id.text[len(prefix_gdoc_id_res):]), filter(lambda r: r.resource_id.text.startswith('document:'), client.get_all_resources()))
+ return map(lambda doc: (doc.title.text, doc.resource_id.text[len(prefix_gdoc_id_res):]), filter(lambda r: r.resource_id.text.startswith(prefix_gdoc_id_res), client.get_all_resources()))
def set_model_document_template(self, cr, uid, model, resource_id, context=None):