diff options
| author | Jigar Amin <jam@tinyerp.com> | 2012-10-17 10:08:24 +0530 |
|---|---|---|
| committer | Jigar Amin <jam@tinyerp.com> | 2012-10-17 10:08:24 +0530 |
| commit | 40e2c69f6663d8fd78941bcceed189f570dcba7c (patch) | |
| tree | f36f6f20fdb45bc91c49d48923c87b8eaa104b0e /addons/google_docs/static | |
| parent | 4992deccc86ae0ae51057c97dfb9a464f0719803 (diff) | |
| parent | 8a38ee944e02d6cd6cb18b87b962b67e510906a9 (diff) | |
[MERGE] Sync with trunk
bzr revid: jam@tinyerp.com-20121017043824-pcijflp073el02ih
Diffstat (limited to 'addons/google_docs/static')
| -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(); }); - }) + }); } - }) -} + }); +}; |
