[FIX] google doc function changed because the google API has changed

lp bug: https://launchpad.net/bugs/1084509 fixed

bzr revid: api@openerp.com-20121227114333-3szgeyrc3d25ua39
This commit is contained in:
Arnaud Pineux
2012-12-27 12:43:33 +01:00
parent 31b11163fa
commit 86954fd821
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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