fix issue on form view when: quick edit the value, them move to edit mode

the form, change the value then cancel the change, the value was keeping the initial values without taking account the quick edition.
find by @JonathanNEMRY
This commit is contained in:
Pierre Verkest
2015-12-14 15:40:18 +01:00
parent 3068b3217a
commit ca4b39e8a5
2 changed files with 87 additions and 20 deletions

View File

@@ -81,6 +81,7 @@ openerp.web_widget_boolean_switch = function(instance){
model.call('write', [[id], values],
{'context': this.build_context()});
this.internal_set_value(state, {'silent': true});
this.getParent().datarecord[this.name] = state;
}
}, this));
this.on("change:readonly", this, this.switcher_states);