From 13a49a855cfe9124c72e4bd9e040100c9dc6d50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 2 Nov 2012 15:23:22 +0100 Subject: [PATCH] [IMP] mail: updated notified_partner_ids field string and help; udpated demo data; updated __init__ to avoid issues with non existing columns in mail_favorite. bzr revid: tde@openerp.com-20121102142322-prq9vvtec93u9mah --- addons/mail/__init__.py | 4 ++-- addons/mail/data/mail_demo.xml | 20 +++++++++++++------- addons/mail/mail_message.py | 3 ++- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/addons/mail/__init__.py b/addons/mail/__init__.py index aea7ee62cbc..b34993ffd32 100644 --- a/addons/mail/__init__.py +++ b/addons/mail/__init__.py @@ -22,12 +22,12 @@ import mail_message_subtype import mail_alias import mail_followers +import mail_vote +import mail_favorite import mail_message import mail_mail import mail_thread import mail_group -import mail_vote -import mail_favorite import res_partner import res_users import report diff --git a/addons/mail/data/mail_demo.xml b/addons/mail/data/mail_demo.xml index 4b553a1e220..89fb57dda6f 100644 --- a/addons/mail/data/mail_demo.xml +++ b/addons/mail/data/mail_demo.xml @@ -12,7 +12,6 @@ This month you also get 250 EUR of eco-vouchers if you have been in the company comment - mail.group @@ -21,7 +20,6 @@ This month you also get 250 EUR of eco-vouchers if you have been in the company comment - mail.group @@ -30,7 +28,7 @@ This month you also get 250 EUR of eco-vouchers if you have been in the company comment - + mail.group @@ -38,8 +36,8 @@ This month you also get 250 EUR of eco-vouchers if you have been in the company comment + - mail.group @@ -51,14 +49,14 @@ This month you also get 250 EUR of eco-vouchers if you have been in the company - Hello Demo User! How are you ? + Hello Demo User! I was wondering whether you had some issues with our secret task about putting cats everywhere in OpenERP. comment - Fine, thanks, and you ? + No specific issues, I think everything is clear. comment @@ -66,7 +64,15 @@ This month you also get 250 EUR of eco-vouchers if you have been in the company - Fine too. + Ow, just to be sure... we were talking about lolcats, right ? + + comment + + + + + + Absolutely! comment diff --git a/addons/mail/mail_message.py b/addons/mail/mail_message.py index cd35b37d812..46c3bc9fcc2 100644 --- a/addons/mail/mail_message.py +++ b/addons/mail/mail_message.py @@ -125,7 +125,8 @@ class mail_message(osv.Model): help="Author of the message. If not set, email_from may hold an email address that did not match any partner."), 'partner_ids': fields.many2many('res.partner', string='Recipients'), 'notified_partner_ids': fields.many2many('res.partner', 'mail_notification', - 'message_id', 'partner_id', 'Recipients'), + 'message_id', 'partner_id', 'Notified partners', + help='Partners that have a notification pushing this message in their mailboxes'), 'attachment_ids': fields.many2many('ir.attachment', 'message_attachment_rel', 'message_id', 'attachment_id', 'Attachments'), 'parent_id': fields.many2one('mail.message', 'Parent Message', select=True, ondelete='set null', help="Initial thread message."),