[FIX] FieldStatus: restore trigger get_selection on value change. Was removed rev 3738.

Without this a change of record in a form view would not recompute the list of states as well as a change of state due to a button

bzr revid: mat@openerp.com-20140121151255-jke0zbobb0ilpqid
This commit is contained in:
Martin Trigaux 2014-01-21 16:12:55 +01:00
parent c01779e4c5
commit 9f3ab4599c
1 changed files with 1 additions and 0 deletions

View File

@ -5477,6 +5477,7 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
start: function() {
this.field_manager.on("view_content_has_changed", this, this.calc_domain);
this.calc_domain();
this.on("change:value", this, this.get_selection);
this.on("change:evaluated_selection_domain", this, this.get_selection);
this.on("change:selection", this, function() {
this.selection = this.get("selection");