[FIX] Readonly field can't be dirty

bzr revid: fme@openerp.com-20110919100003-dj0z8sswv78x6jm5
This commit is contained in:
Fabien Meghazi 2011-09-19 12:00:03 +02:00
parent 048527e757
commit 9ba81bdb5d
1 changed files with 1 additions and 1 deletions

View File

@ -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();