[FIX] Readonly field can't be dirty
bzr revid: fme@openerp.com-20110919100003-dj0z8sswv78x6jm5
This commit is contained in:
parent
048527e757
commit
9ba81bdb5d
|
@ -960,7 +960,7 @@ openerp.web.form.Field = openerp.web.form.Widget.extend(/** @lends openerp.web.f
|
|||
return !this.invalid;
|
||||
},
|
||||
is_dirty: function() {
|
||||
return this.dirty;
|
||||
return this.dirty && !this.readonly;
|
||||
},
|
||||
get_on_change_value: function() {
|
||||
return this.get_value();
|
||||
|
|
Loading…
Reference in New Issue