[FIX]google_spreadsheet: attach spreadsheet to its template
bzr revid: dle@openerp.com-20130723141009-1b301rk5txiihstl
This commit is contained in:
parent
d69046f327
commit
605a84efc7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue