diff options
| author | Divyesh Makwana (Open ERP) <mdi@tinyerp.com> | 2012-11-09 10:07:03 +0530 |
|---|---|---|
| committer | Divyesh Makwana (Open ERP) <mdi@tinyerp.com> | 2012-11-09 10:07:03 +0530 |
| commit | 4090f2fc90fc51b773c8e5d72cecd8d068d45276 (patch) | |
| tree | 8e95b09c0af847df292a8fa8f2206830d8b7b14f /addons/google_docs/static/src/js | |
| parent | 4d1c0cea757af343def0328a946c25e97c80707b (diff) | |
| parent | edaa35737b815b37648d75df7f6228d38ee90ca9 (diff) | |
[Merge] Merge with main addons.
bzr revid: mdi@tinyerp.com-20121109043703-d6jjc4hj8aaol9ip
Diffstat (limited to 'addons/google_docs/static/src/js')
| -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, |
