From 73b14dae77dfa0d6b9a5b31f3cfcdc2046382214 Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Tue, 12 Jun 2012 16:47:40 +0200 Subject: [PATCH] mail define new layout blog/default bzr revid: al@openerp.com-20120612144740-gnx4z9h0tnpy6cha --- addons/mail/static/src/js/mail.js | 3 ++- addons/mail/static/src/xml/mail.xml | 30 ++++++++++++++++++++++------- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 905e95f3aef..03d114df7b4 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -278,7 +278,8 @@ openerp.mail = function(session) { // format date according to the user timezone record.date = session.web.format_value(record.date, {type:"datetime"}); // render - $(session.web.qweb.render('ThreadMsg', {'record': record, 'thread': this, 'params': this.params, 'display': this.display}) + // OPTIONS + $(session.web.qweb.render('mail.Thread.default', {'record': record, 'thread': this, 'params': this.params, 'display': this.display}) ).appendTo(this.$element.children('div.oe_mail_thread_display:first')); // truncated: hide full-text, show summary, add buttons if (record.tr_body) { diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index a34e362960b..04a373fc8a5 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -57,19 +57,21 @@ -
  • + + +
  • - - + +
  • - - + +

    @@ -98,8 +100,8 @@

    - - + +

    @@ -129,4 +131,18 @@ + + +

  • +
    + + +
    + + +
    + +
    +
  • +