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