diff options
| author | Atul Patel (OpenERP) <atp@tinyerp.com> | 2012-11-09 10:19:47 +0530 |
|---|---|---|
| committer | Atul Patel (OpenERP) <atp@tinyerp.com> | 2012-11-09 10:19:47 +0530 |
| commit | 16d71823e4e08033145aa06500753e8ba073a160 (patch) | |
| tree | 421a9d80ac6559c8f9daf62b5c31c699d0578066 /addons/google_docs/static/src/js/gdocs.js | |
| parent | 292fe2d2fa3ed6a8028834b173aa0156a0fed7a0 (diff) | |
| parent | 0528e00788a7cca36353a2996ab58568bdd8be78 (diff) | |
[MERGE]:Merged wtih lp:openobject-addons
bzr revid: atp@tinyerp.com-20121109044947-n81qke33jp9p30af
Diffstat (limited to 'addons/google_docs/static/src/js/gdocs.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, |
