summaryrefslogtreecommitdiff
path: root/addons/google_drive/static/src/js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-02-20 18:16:01 +0100
committerChristophe Simonis <chs@odoo.com>2015-02-20 18:16:01 +0100
commitaec02cb4935103aa7d158b56397c191932b35fa7 (patch)
tree82915059f96448510e6b1c5183611175c483e579 /addons/google_drive/static/src/js
parente13923c0db1fd4ba9c98eacdcd987c6be7575a5f (diff)
parentd350f5b59e8905a76e965b6f34a0db14dbb53af0 (diff)
[MERGE] forward port of branch 8.0 up to d350f5b
Diffstat (limited to 'addons/google_drive/static/src/js')
-rw-r--r--addons/google_drive/static/src/js/gdrive.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_drive/static/src/js/gdrive.js b/addons/google_drive/static/src/js/gdrive.js
index 98324c1c288..07f0e9e37eb 100644
--- a/addons/google_drive/static/src/js/gdrive.js
+++ b/addons/google_drive/static/src/js/gdrive.js
@@ -64,7 +64,7 @@ openerp.google_drive = function (instance, m) {
var loaded = self.fetch('google.drive.config', ['google_drive_resource_id', 'google_drive_client_id'], [['id', '=', doc_item.config_id]])
.then(function (configs) {
var ds = new instance.web.DataSet(self, 'google.drive.config');
- ds.call('get_google_drive_url', [doc_item.config_id, doc_item.res_id,configs[0].google_drive_resource_id]).done(function (url) {
+ ds.call('get_google_drive_url', [doc_item.config_id, doc_item.res_id,configs[0].google_drive_resource_id, self.dataset.context]).done(function (url) {
if (url){
window.open(url, '_blank');
}