Skip to content

Commit

Permalink
[FIX] Statusbar: fixed clikable statusbar on selection field.
Browse files Browse the repository at this point in the history
bzr revid: tde@openerp.com-20130618133521-6zey8imcciqthcuk
  • Loading branch information
tde-banana-odoo committed Jun 18, 2013
1 parent 2442576 commit 180212b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addons/web/static/src/js/view_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -5553,7 +5553,12 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
on_click_stage: function (ev) {
var self = this;
var $li = $(ev.currentTarget);
var val = parseInt($li.data("id"));
if (this.field.type == "many2one") {
var val = parseInt($li.data("id"));
}
else {
var val = $li.data("id");
}
if (val != self.get('value')) {
this.view.recursive_save().done(function() {
var change = {};
Expand Down

0 comments on commit 180212b

Please sign in to comment.