summaryrefslogtreecommitdiff
path: root/addons/mail
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-12-08 14:01:09 +0100
committerThibault Delavallée <tde@openerp.com>2015-12-08 16:33:48 +0100
commitb44f9b001bec828857abf2970c05701ffa208a5c (patch)
tree77460c7854cbd0f409cce54b5cf475681c6e5b79 /addons/mail
parent4ebf4419a10c39ed47762c546f2f46f51a03ecd1 (diff)
[FIX] mail: invite only channel channel
It is not interesting to be able to add chat channels to document.
Diffstat (limited to 'addons/mail')
-rw-r--r--addons/mail/wizard/invite.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/wizard/invite.py b/addons/mail/wizard/invite.py
index b32d9dd657f..a45a055b236 100644
--- a/addons/mail/wizard/invite.py
+++ b/addons/mail/wizard/invite.py
@@ -28,7 +28,8 @@ class Invite(models.TransientModel):
res_model = fields.Char('Related Document Model', required=True, select=1, help='Model of the followed resource')
res_id = fields.Integer('Related Document ID', select=1, help='Id of the followed resource')
partner_ids = fields.Many2many('res.partner', string='Recipients', help="List of partners that will be added as follower of the current document.")
- channel_ids = fields.Many2many('mail.channel', string='Channels', help='List of channels that will be added as listeners of the current document.')
+ channel_ids = fields.Many2many('mail.channel', string='Channels', help='List of channels that will be added as listeners of the current document.',
+ domain=[('channel_type', '=', 'channel')])
message = fields.Html('Message')
send_mail = fields.Boolean('Send Email', default=True, help="If checked, the partners will receive an email warning they have been added in the document's followers.")