[FIX] mail_autosubscribe: check partners type

make sure partner is a tuple
This commit is contained in:
Joel Zilli 2022-07-05 13:27:33 -03:00
parent e025b64586
commit a23128553c

View File

@ -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,