summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2013-01-04 10:39:53 +0100
committerVo Minh Thu <vmt@openerp.com>2013-01-04 10:39:53 +0100
commit5e8f418d4154bf70a4959de49f823cb9efbcbb34 (patch)
treedc6c9c84eb4aed76992c4426c7cdaf0cef52d0b9 /addons/google_docs/google_docs.py
parent013efb71cbc93e76f5b36e17a44d1916162aacbe (diff)
parentf881997d6007b7c1c7497ffa8a11eb885b919a2b (diff)
[MERGE] Forward port of 7.0 until rev. 8534.
bzr revid: vmt@openerp.com-20130104093953-p92uylaux9u24isn
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