diff options
| author | Jigar Amin <jam@tinyerp.com> | 2012-11-21 10:15:15 +0530 |
|---|---|---|
| committer | Jigar Amin <jam@tinyerp.com> | 2012-11-21 10:15:15 +0530 |
| commit | dee1af1c9d58dc3debea1af575204c1f8728d9a5 (patch) | |
| tree | 29ecb52ce16b6a0cac85fdd217952c8abff6a65b /addons/google_docs/static/src | |
| parent | 2840336239e2678cf2c23010539f9a6e870ba909 (diff) | |
| parent | 437833ba43e095e93a6b125f8b7ed6ae1ff9da93 (diff) | |
[MERGE] Sync with trunk
bzr revid: jam@tinyerp.com-20121121044515-kwjy3okxx13nzeo4
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, |
