Hello,
i'm in openerp v7, and i want to call a python method from a javascript code. this is the javascript code (web\static\src\js\view_list_editable.js):
do_delete: function (ids) { alert('hello test'); /*--my test msg--*/ /// Call python method here ? var nonfalse = _.compact(ids); var _super = this._super.bind(this); var next = this.editor.is_editing() ? this.cancel_edition(true) : $.when(); return next.then(function () { return _super(nonfalse); }); },
i want to delete some data when choosing this button !! any idea ?
Thanks !!