summaryrefslogtreecommitdiff
path: root/addons/google_docs/google_docs.py
diff options
context:
space:
mode:
authorRoberto López López (OpenERP) <rlo@openerp.com>2012-03-02 09:30:13 +0100
committerRoberto López López (OpenERP) <rlo@openerp.com>2012-03-02 09:30:13 +0100
commit9afb5cfe64b8f67e4ccfe6e048046fb6937aeef0 (patch)
tree08be3e87a69df23f3bf2ec7db395950fe9ae8e2e /addons/google_docs/google_docs.py
parent2b774dddfb3bd5cfd43fccade36f6ac362ab25d7 (diff)
[imp] py
bzr revid: rlo@openerp.com-20120302083013-4pvtkjma36ovlzhy
Diffstat (limited to 'addons/google_docs/google_docs.py')
-rw-r--r--addons/google_docs/google_docs.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py
index 34b4e5a16ed..5e1f30e38fa 100644
--- a/addons/google_docs/google_docs.py
+++ b/addons/google_docs/google_docs.py
@@ -22,8 +22,8 @@ class google_docs_ir_attachment(osv.osv):
return client
- def create_empty_google_doc(self, cr, uid, model, id, type_doc):
- #import pdb; pdb.set_trace()
+ def create_empty_google_doc(self, cr, uid, model, ids, type_doc):
+ import pdb; pdb.set_trace()
'''Associate a copy of the gdoc identified by 'gdocs_res_id' to the current entity.
@param cr: the current row from the database cursor.
@param uid: the current user ID, for security checks.
@@ -49,16 +49,16 @@ class google_docs_ir_attachment(osv.osv):
# register into the db
self.create(cr, uid, {
- 'model': model,
+ 'res_model': model,
'res_id': ids[0],
'type': 'url',
- #'name': TODO pending from the working config
+ 'name': 'new_foo', # TODO pending from the working config
'url': gdocs_resource.get_alternate_link().href
})
return gdocs_resource
- def copy_gdoc(self, cr, uid, model, id):
+ def copy_gdoc(self, cr, uid, model, ids):
if context is None:
context={}
@@ -72,10 +72,10 @@ class google_docs_ir_attachment(osv.osv):
# register into the db
self.create(cr, uid, {
- 'model': model,
- 'res_id': id[0],
+ 'res_model': model,
+ 'res_id': ids[0],
'type': 'url',
- #'name': TODO pending from the working config
+ 'name': 'copy_foo', # TODO pending from the working config
'url': copy_resource.get_alternate_link().href
})