diff options
| author | RGA(OpenERP) <> | 2013-01-31 14:13:19 +0530 |
|---|---|---|
| committer | RGA(OpenERP) <> | 2013-01-31 14:13:19 +0530 |
| commit | 31696e3de5b050903be749fcd4d06d5c3d4e8026 (patch) | |
| tree | 37a8980b9f623887427620a7102e1627a253be39 /addons/google_docs/google_docs.py | |
| parent | 67c51fcdeddfb402c2cd553253484514336d5e86 (diff) | |
| parent | b390a5697cd4eb8cced5f4cdcf2c34b6cad3a7e4 (diff) | |
Merge with trunk
bzr revid: rgaopenerp-20130131084319-aamml0ubib0bz35b
Diffstat (limited to 'addons/google_docs/google_docs.py')
| -rw-r--r-- | addons/google_docs/google_docs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py index ac0cf68f3f6..4b98798c832 100644 --- a/addons/google_docs/google_docs.py +++ b/addons/google_docs/google_docs.py @@ -94,9 +94,9 @@ class google_docs_ir_attachment(osv.osv): client = self._auth(cr, uid) # fetch and copy the original document try: - original_resource = client.get_resource_by_id(gdoc_template_id) + doc = client.GetDoc(gdoc_template_id) #copy the document you choose in the configuration - copy_resource = client.copy_resource(original_resource, name_gdocs) + copy_resource = client.copy(doc, name_gdocs) except: raise osv.except_osv(_('Google Docs Error!'), _("Your resource id is not correct. You can find the id in the google docs URL.")) # create an ir.attachment |
