summaryrefslogtreecommitdiff
path: root/addons/google_drive/static
diff options
context:
space:
mode:
Diffstat (limited to 'addons/google_drive/static')
-rw-r--r--addons/google_drive/static/src/js/gdrive.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/addons/google_drive/static/src/js/gdrive.js b/addons/google_drive/static/src/js/gdrive.js
index 204d6824bad..b7d2542bb7a 100644
--- a/addons/google_drive/static/src/js/gdrive.js
+++ b/addons/google_drive/static/src/js/gdrive.js
@@ -59,9 +59,11 @@ Sidebar.include({
var self = this;
var domain = [['id', '=', doc_item.config_id]];
var fields = ['google_drive_resource_id', 'google_drive_client_id'];
- this._rpc('google.drive.config', 'search_read')
- .args([domain, fields])
- .exec()
+ this._rpc({
+ model: 'google.drive.config',
+ method: 'search_read',
+ args: [domain, fields],
+ })
.then(function (configs) {
var ds = new data.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, self.dataset.context]).done(function (url) {