Hi Arnaud, i think you should try something like this. 7 try: try: get_resource_funct = client.get_resource_by_id copy_funct = client.copy_resource except: #stay backward compatible with previous version of API get_resource_funct = client.GetDoc copy_funct = client.copy 8 doc = get_resource_funct(gdoc_template_id) 9 original_resource = client.get_resource_by_id(gdoc_template_id) 10 #copy the document you choose in the configuration 11 copy_resource = copy_funct(doc, name_gdocs) 12 except: 13 raise osv.except_osv(_('Google Docs Error!'), _("Your resource id is not correct. You can find the id in the google docs URL.")) -- https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-google_drive-api/+merge/142508 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/7.0-google_drive-api.
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp