[IMP] support multiple lines in m2o

bzr revid: nicolas.vanhoren@openerp.com-20120628121745-9k3r7zfy5edgnivm
This commit is contained in:
niv-openerp
2012-06-28 14:17:45 +02:00
parent 3e30f54cbf
commit 492af8bef4
+2 -1
View File
@@ -2722,9 +2722,10 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
if (!this.get("effective_readonly")) {
this.$input.val(str);
} else {
str = _.escape(str).replace("\n", "<br />");
this.$element.find('a')
.unbind('click')
.text(str)
.html(str)
.click(function () {
self.do_action({
type: 'ir.actions.act_window',