[FIX] m2o switches correctly its button
bzr revid: nicolas.vanhoren@openerp.com-20121022161426-1oqwa8e3n6kh7pba
This commit is contained in:
parent
6972b34029
commit
3b5b24b72e
|
@ -3121,6 +3121,8 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
|
|||
this.current_display = this.$input.val();
|
||||
if (this.is_false()) {
|
||||
this.$('.oe_m2o_cm_button').css({'display':'none'});
|
||||
} else {
|
||||
this.$('.oe_m2o_cm_button').css({'display':'inline'});
|
||||
}
|
||||
} else {
|
||||
var lines = _.escape(str).split("\n");
|
||||
|
|
Loading…
Reference in New Issue