[FIX] view_form: backport of commit 180212b999
(opw 609787)
This commit is contained in:
parent
30ac7248d6
commit
95cff0ba34
|
@ -5484,7 +5484,12 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
|
||||||
on_click_stage: function (ev) {
|
on_click_stage: function (ev) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var $li = $(ev.currentTarget);
|
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')) {
|
if (val != self.get('value')) {
|
||||||
this.view.recursive_save().done(function() {
|
this.view.recursive_save().done(function() {
|
||||||
var change = {};
|
var change = {};
|
||||||
|
|
Loading…
Reference in New Issue