[FIX] mail: notification emails: subject is now Re: <document_name>.

bzr revid: tde@openerp.com-20130214123925-2ymglkqph90ntebg
This commit is contained in:
Thibault Delavallée 2013-02-14 13:39:25 +01:00
parent 0d3d15858c
commit d7f63a10fd
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ class mail_mail(osv.Model):
:param browse_record partner: specific recipient partner
"""
if force or (not mail.subject and mail.model and mail.res_id):
return '%s posted on %s' % (mail.author_id.name, mail.record_name)
return 'Re: %s' % (mail.record_name)
return mail.subject
def send_get_mail_body(self, cr, uid, mail, partner=None, context=None):

View File

@ -339,7 +339,7 @@ class test_mail(TestMailBase):
# Mail data
_subject = 'Pigs'
_mail_subject = '%s posted on %s' % (user_raoul.name, group_pigs.name)
_mail_subject = 'Re: %s' % (group_pigs.name)
_body1 = '<p>Pigs rules</p>'
_mail_body1 = '<p>Pigs rules</p>\n<div><p>Raoul</p></div>\n'
_mail_bodyalt1 = 'Pigs rules\nRaoul\n'