Skip to content

Commit

Permalink
[FIX]google_spreadsheet: attach spreadsheet to its template
Browse files Browse the repository at this point in the history
  • Loading branch information
beledouxdenis committed Jul 23, 2013
1 parent d69046f commit 605a84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/google_spreadsheet/google_spreadsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def set_spreadsheet(self, cr, uid, model, domain, groupbys, view_id, context=Non
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:
Expand Down

0 comments on commit 605a84e

Please sign in to comment.