From a23128553c7f76b3b1e7c69503ac59f23d08a8eb Mon Sep 17 00:00:00 2001 From: Joel Zilli Date: Tue, 5 Jul 2022 13:27:33 -0300 Subject: [PATCH] [FIX] mail_autosubscribe: check partners type make sure partner is a tuple --- mail_autosubscribe/models/mail_thread.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mail_autosubscribe/models/mail_thread.py b/mail_autosubscribe/models/mail_thread.py index be8d473..e8ffece 100644 --- a/mail_autosubscribe/models/mail_thread.py +++ b/mail_autosubscribe/models/mail_thread.py @@ -19,7 +19,10 @@ class MailThread(models.AbstractModel): for follower in followers if follower not in partners and follower not in self.message_partner_ids ] - partner_ids += follower_ids + if isinstance(partner_ids, tuple): + partner_ids += tuple(follower_ids) + else: + partner_ids += follower_ids return super().message_subscribe( partner_ids=partner_ids, subtype_ids=subtype_ids,