[FIX]google_spreadsheet: attach spreadsheet to its template

bzr revid: dle@openerp.com-20130723141009-1b301rk5txiihstl
This commit is contained in:
Denis Ledoux 2013-07-23 16:10:09 +02:00
parent d69046f327
commit 605a84efc7
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class config(osv.osv):
raise
config = self.browse(cr, uid, config_id, context=context)
title = 'Spreadsheet %s' % model
res = self.copy_doc(cr, uid, 1, config.google_drive_resource_id, title, model, context=context)
res = self.copy_doc(cr, uid, config.id, config.google_drive_resource_id, title, 'google.drive.config', context=context)
mo = re.search("(key=|/d/)([A-Za-z0-9-_]+)", res['url'])
if mo: