[fix] possible problem in m2o
bzr revid: nicolas.vanhoren@openerp.com-20120316095459-vdd795tszufjecav
This commit is contained in:
parent
7dc7b038e1
commit
3d2d7ecdca
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue