[imp] just cleaned m2o a little

bzr revid: nicolas.vanhoren@openerp.com-20120316100629-236lxlmicr4wv9se
This commit is contained in:
niv-openerp 2012-03-16 11:06:29 +01:00
parent 116c02b0f4
commit a44e1f14da
1 changed files with 2 additions and 7 deletions

View File

@ -1878,10 +1878,8 @@ openerp.web.form.FieldMany2One = openerp.web.form.Field.extend({
start: function() {
this._super();
this.render_content();
this.on("change:effective_readonly", this, function(origin, event) {
if (event.oldValue !== event.newValue) {
this.render_content();
}
this.on("change:effective_readonly", this, function() {
this.render_content();
});
},
render_content: function() {
@ -2228,9 +2226,6 @@ openerp.web.form.FieldMany2One = openerp.web.form.Field.extend({
},
focus: function ($element) {
this._super($element || this.$input);
},
update_dom: function() {
this._super.apply(this, arguments);
}
});
openerp.web.check_interface(openerp.web.form.FieldMany2One, openerp.web.form.FieldInterface);