summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorBhumi Thakkar (Open ERP) <bth@tinyerp.com>2013-01-28 11:15:31 +0530
committerBhumi Thakkar (Open ERP) <bth@tinyerp.com>2013-01-28 11:15:31 +0530
commit76de37f9bda8ce1a8e75439c577cfa0c1afa876f (patch)
tree89f150ed741f3247fe8b14e2831962a62d95e0e7 /addons/google_docs/google_docs.py
parent45f013603ffe691524aaf497e20e0af45f1b876b (diff)
parentb390a5697cd4eb8cced5f4cdcf2c34b6cad3a7e4 (diff)
[MERGE] Merge lp:openobject-addons.
bzr revid: bth@tinyerp.com-20130128054531-uw2kkz03zbnf3vub
Diffstat (limited to 'addons/google_docs/google_docs.py')
-rw-r--r--addons/google_docs/google_docs.py4
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