From 9150d950623668d345990e17e53cd2842d047303 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Mon, 17 Dec 2012 10:35:01 +0100 Subject: [PATCH] [IMP] mail: add the readonly option on the field for the different views bzr revid: chm@openerp.com-20121217093501-mxji9wb00xyvq35e --- addons/mail/static/src/js/mail.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 5b9696750a2..f873daff9c3 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -1509,6 +1509,9 @@ openerp.mail = function (session) { if (this.node.attrs.placeholder) { this.node.params.compose_placeholder = this.node.attrs.placeholder; } + if (this.node.attrs.readonly) { + this.node.params.readonly = this.node.attrs.readonly; + } this.domain = this.node.params && this.node.params.domain || []; },