diff options
| author | Atul Patel (OpenERP) <atp@tinyerp.com> | 2012-10-16 22:53:29 +0530 |
|---|---|---|
| committer | Atul Patel (OpenERP) <atp@tinyerp.com> | 2012-10-16 22:53:29 +0530 |
| commit | 9b01d578648e8c6720b4e5d4029f633a5ded5cac (patch) | |
| tree | 67bc782ecbf186ad1191aa5eeae4d43238629113 /addons/google_docs/static/src | |
| parent | c76e6341a1e63e0c48ecf51b0b81e76b755201a2 (diff) | |
| parent | 44b468c4664447af693ff772fe0c5a07448e6745 (diff) | |
[MERGE]: Merged with lp:openobject-addons
bzr revid: atp@tinyerp.com-20121016172329-23rl227ea0822ucr
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(); }); - }) + }); } - }) -} + }); +}; |
