[15.0][FIX] fetchmail_mail_activity_team_activity: issues with value unpacking fixed in mail.thread

pull/930/head
ahashaam 2023-07-19 21:29:59 +02:00
parent d2431fee91
commit eb21a7de52
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ class MailThread(models.AbstractModel):
custom_values=custom_values, custom_values=custom_values,
) )
for model, thread_id in routes or (): for route in routes:
# routes: list of routes [(model, thread_id, custom_values, user_id, alias)]
model, thread_id = route[0], route[1]
mdl = self.env[model] mdl = self.env[model]
# Model needs mail.activity.mixin # Model needs mail.activity.mixin
if not all(hasattr(mdl, x) for x in ("activity_ids", "activity_schedule")): if not all(hasattr(mdl, x) for x in ("activity_ids", "activity_schedule")):