[FIX] on_change result set the fields values but does not set touched state

bzr revid: fme@openerp.com-20110630091326-jgu5l45yvcsil1g0
This commit is contained in:
Fabien Meghazi 2011-06-30 11:13:26 +02:00
parent 3f02624843
commit 825330e016
1 changed files with 1 additions and 0 deletions

View File

@ -228,6 +228,7 @@ openerp.base.FormView = openerp.base.View.extend( /** @lends openerp.base.FormV
if (field.get_value() != value) {
console.log(" |-> Onchange Action : change '%s' value from '%s' to '%s'", field.name, field.get_value(), value);
field.set_value(value);
field.touched = true;
if (_.indexOf(processed, field.name) < 0) {
this.do_onchange(field, processed);
}