diff options
| author | Vijaykumar Baladaniya <vba@tinyerp.com> | 2012-10-15 19:20:03 +0530 |
|---|---|---|
| committer | Vijaykumar Baladaniya <vba@tinyerp.com> | 2012-10-15 19:20:03 +0530 |
| commit | 10c47d70c270bd19cbac4e43e8c9b136b42bae80 (patch) | |
| tree | a78eb1c40a60ea006bba7e38effaa4c92727ac2a /addons/google_docs/static/src/js | |
| parent | 66f00492b140566fa136c5ef55cd95dbb362d1ec (diff) | |
| parent | 59ddf58bb42b9732b3db84e402ed60ced500acde (diff) | |
Merge with latest.
bzr revid: vba@tinyerp.com-20121015135003-s0n7b0v5bmobqbox
Diffstat (limited to 'addons/google_docs/static/src/js')
| -rw-r--r-- | addons/google_docs/static/src/js/gdocs.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/addons/google_docs/static/src/js/gdocs.js b/addons/google_docs/static/src/js/gdocs.js index c2c0ded407b..0e5583fa953 100644 --- a/addons/google_docs/static/src/js/gdocs.js +++ b/addons/google_docs/static/src/js/gdocs.js @@ -16,7 +16,7 @@ var QWeb = instance.web.qweb, var form = self.getParent(); form.sidebar_context().then(function (context) { var ds = new instance.web.DataSet(this, 'ir.attachment', context); - def = ds.call('google_doc_get', [form.dataset.model, [form.datarecord.id], context], function(r) { + ds.call('google_doc_get', [form.dataset.model, [form.datarecord.id], context]).then(function(r) { if (r == 'False') { var params = { error: response, @@ -27,11 +27,9 @@ var QWeb = instance.web.qweb, modal: true, }); } - - }).done(function(){ - form.reload(); - }); - }) + form.reload(); + }); + }); } - }) -} + }); +}; |
