summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorVishmita <vja@tinyerp.com>2013-01-28 17:20:31 +0530
committerVishmita <vja@tinyerp.com>2013-01-28 17:20:31 +0530
commitd24459e4a9230ad1823c1db65429058a99d9347b (patch)
tree08f5a2979071b4eaba4ef8e461f235ba626bd305 /addons/google_docs/google_docs.py
parent499aabf06f2043b4ea51d8cdc75ba347778285bc (diff)
parentb390a5697cd4eb8cced5f4cdcf2c34b6cad3a7e4 (diff)
[Merge]Merge lp:openobject-addons
bzr revid: vja@tinyerp.com-20130128115031-dy2ib57ox6rl7c4r
Diffstat (limited to 'addons/google_docs/google_docs.py')
-rw-r--r--addons/google_docs/google_docs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index 1f6af0378ca..4b98798c832 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -20,9 +20,9 @@
import logging
from datetime import datetime
-from tools import DEFAULT_SERVER_DATETIME_FORMAT
-from osv import osv, fields
-from tools.translate import _
+from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT
+from openerp.osv import fields, osv
+from openerp.tools.translate import _
_logger = logging.getLogger(__name__)
@@ -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