[FIX]Fix the issue of many2one did not became dirty when we remove the value from many2one field.

bzr revid: msh@openerp.com-20120804082445-yv0v9ygw1cm4d83f
This commit is contained in:
Mohammed Shekha
2012-08-04 13:54:45 +05:30
parent c9273bc1b5
commit b77a42a714
+1 -1
View File
@@ -2295,7 +2295,7 @@ openerp.web.form.FieldMany2One = openerp.web.form.Field.extend({
if (back_orig_value === undefined) { // first use after a set_value()
return;
}
if (this.value != undefined && ((back_orig_value ? back_orig_value[0] : null)
if (this.value !== undefined && ((back_orig_value ? back_orig_value[0] : null)
!== (this.value ? this.value[0] : null))) {
this.on_ui_change();
}