diff options
| author | Atul Patel (OpenERP) <atp@tinyerp.com> | 2012-10-16 23:19:59 +0530 |
|---|---|---|
| committer | Atul Patel (OpenERP) <atp@tinyerp.com> | 2012-10-16 23:19:59 +0530 |
| commit | 55df644fe2b75a9f578ce2c37a5822208634f8c0 (patch) | |
| tree | 462828d8f24bde8c01f02591408bea4537dc3fe7 /addons/google_docs/static/src/js/gdocs.js | |
| parent | 7c3b223618e5ac5d9fe3d3b9fe1162621f2e7802 (diff) | |
| parent | 44b468c4664447af693ff772fe0c5a07448e6745 (diff) | |
[MERGE]: Merged with lp:openobject-addons
bzr revid: pja@tinyerp.com-20121012091635-abpnv2d1qzywdwxa
bzr revid: pja@tinyerp.com-20121015050452-trjnnf7jfsxiixmj
bzr revid: atp@tinyerp.com-20121016174959-6xkd1nhthg0obpiu
Diffstat (limited to 'addons/google_docs/static/src/js/gdocs.js')
| -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(); }); - }) + }); } - }) -} + }); +}; |
