[fix] possible problem in m2o

bzr revid: nicolas.vanhoren@openerp.com-20120316095459-vdd795tszufjecav
This commit is contained in:
niv-openerp 2012-03-16 10:54:59 +01:00
parent 7dc7b038e1
commit 3d2d7ecdca
1 changed files with 4 additions and 4 deletions

View File

@ -1874,16 +1874,16 @@ openerp.web.form.FieldMany2One = openerp.web.form.Field.extend({
this.cm_id = _.uniqueId('m2o_cm_');
this.last_search = [];
this.tmp_value = undefined;
},
start: function() {
this._super();
this.render_content();
this.on("change:effective_readonly", this, function(origin, event) {
if (event.oldValue !== event.newValue) {
this.render_content();
}
});
},
start: function() {
this._super();
this.render_content();
},
render_content: function() {
this.$element.html("");
if (!this.get("effective_readonly"))