summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-05-15 17:31:59 +0200
committerThibault Delavallée <tde@openerp.com>2013-05-15 17:31:59 +0200
commit89896f32bbf6aeecfbddc0f7e8397781fce2a99c (patch)
tree8851b09a24231c188915fae571a288e312febaa1 /addons/mail/static/src/js
parent8d312b85ba6f2050ac8ccefc0222acc5cfb27672 (diff)
[IMP] [CLEAN] [REF] mail, res_partner, res_users, hr: cleaned partner / employee profile following last specifications.
Partner profile is now classic, no more email-routing. Writing on res.users, basically, begins a private discussion. With HR, emails on res.users are private discussions, other are post on employee profile. Some cleaning in Chatter about Followers of ... , now talking about partner or employee profile. bzr revid: tde@openerp.com-20130515153159-cm52byvb7w6m1sxs
Diffstat (limited to 'addons/mail/static/src/js')
-rw-r--r--addons/mail/static/src/js/mail.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js
index b8720e8f1c7..3338954d417 100644
--- a/addons/mail/static/src/js/mail.js
+++ b/addons/mail/static/src/js/mail.js
@@ -236,8 +236,15 @@ openerp.mail = function (session) {
this.format_data();
+ // update record_name: Partner profile
+ if (this.model == 'res.partner') {
+ this.record_name = 'Partner Profile of ' + this.record_name;
+ }
+ else if (this.model == 'hr.employee') {
+ this.record_name = 'News from ' + this.record_name;
+ }
// record options and data
- this.show_record_name = this.options.show_record_name && this.record_name && !this.thread_level && this.model != 'res.partner';
+ this.show_record_name = this.options.show_record_name && this.record_name && !this.thread_level;
this.options.show_read = false;
this.options.show_unread = false;
if (this.options.show_read_unread_button) {