summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorTejas Tank <tta@openerp.com>2012-10-25 13:08:34 +0530
committerTejas Tank <tta@openerp.com>2012-10-25 13:08:34 +0530
commitbef70dd63854791f3137ae4908f18889543c6f33 (patch)
tree4f2e7f02eafe536f3fb08337329b6927c9a88989 /addons/google_docs/google_docs.py
parent8031b99ad4cad6063812fd485080a3af736ac2dd (diff)
[FIX] Document name and google doc index.
bzr revid: tta@openerp.com-20121025073834-0tcjrqe8p7n3m2yx
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 5d6db04e309..60d6446c8ee 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -90,7 +90,7 @@ class google_docs_ir_attachment(osv.osv):
try:
original_resource = client.get_resource_by_id(gdoc_template_id)
#copy the document you choose in the configuration
- copy_resource = client.copy_resource(original_resource, 'copy_%s' % original_resource.title.text)
+ copy_resource = client.copy_resource(original_resource, 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