summaryrefslogtreecommitdiff
path: root/addons/google_docs/static
diff options
context:
space:
mode:
authorArnaud Pineux <api@openerp.com>2012-11-16 09:50:42 +0100
committerArnaud Pineux <api@openerp.com>2012-11-16 09:50:42 +0100
commitdc3f98308d1fb9bca54dcc2d0dd0e4d7f66ca5aa (patch)
tree082c6c0cca740c774b6b24dc040222e4ec39e948 /addons/google_docs/static
parent74a18de6cb6e4731cc75a53f1f3d06849dbadad7 (diff)
parent3c8626efbbe8b4d60154d0b9660cc9c0c0373e0b (diff)
[FIX] audittrail
lp bug: https://launchpad.net/bugs/1055813 fixed bzr revid: api@openerp.com-20121116085042-v8q78tof9jyuec07
Diffstat (limited to 'addons/google_docs/static')
-rw-r--r--addons/google_docs/static/src/js/gdocs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/google_docs/static/src/js/gdocs.js b/addons/google_docs/static/src/js/gdocs.js
index 0cc93b2510c..45e1d09d42c 100644
--- a/addons/google_docs/static/src/js/gdocs.js
+++ b/addons/google_docs/static/src/js/gdocs.js
@@ -16,9 +16,9 @@ var _t = instance.web._t,
var view = self.getParent();
var ids = ( view.fields_view.type != "form" )? view.groups.get_selection().ids : [ view.datarecord.id ];
if( !_.isEmpty(ids) ){
- view.sidebar_context().then(function (context) {
+ view.sidebar_context().done(function (context) {
var ds = new instance.web.DataSet(this, 'ir.attachment', context);
- ds.call('google_doc_get', [view.dataset.model, ids, context]).then(function(r) {
+ ds.call('google_doc_get', [view.dataset.model, ids, context]).done(function(r) {
if (r == 'False') {
var params = {
error: response,