diff options
| author | Amit Patel <apa@tinyerp.com> | 2012-10-16 14:30:46 +0530 |
|---|---|---|
| committer | Amit Patel <apa@tinyerp.com> | 2012-10-16 14:30:46 +0530 |
| commit | fa206b6c42321f61d38c4e9347ddfe965368fdd9 (patch) | |
| tree | 1f6ff2b2edee283a004b323a9d022f3ed285dbb0 /addons/google_docs/static/src | |
| parent | e226a070e1e54e5241a8211a9402ab929df3f68b (diff) | |
| parent | daa7ed0fb52a3fc195eaf370f0376bfbdbe3352f (diff) | |
[MERGE]:trunk
bzr revid: apa@tinyerp.com-20121015055335-jdu7jcul5wfq8ptp
bzr revid: apa@tinyerp.com-20121016090046-uo8i442o80kga8yw
Diffstat (limited to 'addons/google_docs/static/src')
| -rw-r--r-- | addons/google_docs/static/src/js/gdocs.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/google_docs/static/src/js/gdocs.js b/addons/google_docs/static/src/js/gdocs.js index bcfd24f8c0d..2aafdd3de4b 100644 --- a/addons/google_docs/static/src/js/gdocs.js +++ b/addons/google_docs/static/src/js/gdocs.js @@ -22,7 +22,7 @@ var _t = instance.web._t; var form = self.getParent(); form.sidebar_context().then(function (context) { var ds = new instance.web.DataSet(this, 'ir.attachment', context); - 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, @@ -35,7 +35,7 @@ var _t = instance.web._t; } form.reload(); }); - }) + }); } - }) -} + }); +}; |
