[IMP] Don't display the many2one icon if it's value is empty.
bzr revid: fme@openerp.com-20120806160922-d4b59jzsu2nx2yl7
This commit is contained in:
parent
20ae82a823
commit
4e641e9f2c
|
@ -2698,6 +2698,7 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
|
|||
this.on("change:value", this, function() {
|
||||
this.floating = false;
|
||||
this.render_value();
|
||||
this.$('.oe_m2o_cm_button').css({'visibility': this.is_false() ? 'hidden' : 'visible'});
|
||||
});
|
||||
},
|
||||
initialize_content: function() {
|
||||
|
|
Loading…
Reference in New Issue