[FIX] mail_autosubscribe: check partners type
make sure partner is a tuple
This commit is contained in:
parent
e025b64586
commit
a23128553c
@ -19,6 +19,9 @@ class MailThread(models.AbstractModel):
|
||||
for follower in followers
|
||||
if follower not in partners and follower not in self.message_partner_ids
|
||||
]
|
||||
if isinstance(partner_ids, tuple):
|
||||
partner_ids += tuple(follower_ids)
|
||||
else:
|
||||
partner_ids += follower_ids
|
||||
return super().message_subscribe(
|
||||
partner_ids=partner_ids,
|
||||
|
Loading…
Reference in New Issue
Block a user