summaryrefslogtreecommitdiff
path: root/addons/google_docs/static/src/js
diff options
context:
space:
mode:
authorRoberto López López (OpenERP) <rlo@openerp.com>2012-02-29 13:29:40 +0100
committerRoberto López López (OpenERP) <rlo@openerp.com>2012-02-29 13:29:40 +0100
commit4c04da28b7e3c78785cbb51892b26facc1b15f1c (patch)
treec3850c2dd23e63c5429093a0efda71491d80cda9 /addons/google_docs/static/src/js
parentf8213e68f0a1d5ffde27a47b70211a0cb205db9a (diff)
[imp] working... the only thing missing is linking from the model web to the gdoc web
bzr revid: rlo@openerp.com-20120229122940-16h3bwa6j8zbz01s
Diffstat (limited to 'addons/google_docs/static/src/js')
-rw-r--r--addons/google_docs/static/src/js/gdocs.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/google_docs/static/src/js/gdocs.js b/addons/google_docs/static/src/js/gdocs.js
index 6e0ae93fdf3..14103681306 100644
--- a/addons/google_docs/static/src/js/gdocs.js
+++ b/addons/google_docs/static/src/js/gdocs.js
@@ -9,11 +9,9 @@ instance.web.form.SidebarAttachments = instance.web.form.SidebarAttachments.exte
var self = this;
var $gdocbtn = this.$element.find('.oe_google_docs_button');
$gdocbtn.attr('disabled', 'true').find('img, span').toggle();
- new openerp.sessions.session0.web.DataSet(this, 'google.docs').call_button('copy_gdoc', [[this.view.datarecord.id], this.view.dataset.get_context()], function(r) {
+ new openerp.sessions.session0.web.DataSet(this, 'google.docs').call('doc_get', [this.view.datarecord.id, this.view.dataset.get_context()], function(r) {
console.log(r);
- $gdocbtn.hide();
self.do_update();
- self.do_action(r.result);
});
}
});