diff options
| author | Arnaud Pineux <api@openerp.com> | 2012-11-15 13:30:05 +0100 |
|---|---|---|
| committer | Arnaud Pineux <api@openerp.com> | 2012-11-15 13:30:05 +0100 |
| commit | c196424dca20493468aaba6da09fb0e1abdcdd1f (patch) | |
| tree | 835e54f3ed152cd23d10b1cd9bbfa83fe3b2cafa /addons/google_docs/static/src | |
| parent | d37a79d0da41c4dd9e537bf18f2aa8ee19c95325 (diff) | |
[TEST]
bzr revid: api@openerp.com-20121115123005-0cwt6402sj1hbecm
Diffstat (limited to 'addons/google_docs/static/src')
| -rw-r--r-- | addons/google_docs/static/src/js/gdocs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/google_docs/static/src/js/gdocs.js b/addons/google_docs/static/src/js/gdocs.js index 0cc93b2510c..45e1d09d42c 100644 --- a/addons/google_docs/static/src/js/gdocs.js +++ b/addons/google_docs/static/src/js/gdocs.js @@ -16,9 +16,9 @@ var _t = instance.web._t, var view = self.getParent(); var ids = ( view.fields_view.type != "form" )? view.groups.get_selection().ids : [ view.datarecord.id ]; if( !_.isEmpty(ids) ){ - view.sidebar_context().then(function (context) { + view.sidebar_context().done(function (context) { var ds = new instance.web.DataSet(this, 'ir.attachment', context); - ds.call('google_doc_get', [view.dataset.model, ids, context]).then(function(r) { + ds.call('google_doc_get', [view.dataset.model, ids, context]).done(function(r) { if (r == 'False') { var params = { error: response, |
