[12.0][FIX] api multi constrain mistake

pull/541/head
Jaime Arroyo 2020-04-30 10:45:57 +02:00 committed by Holger Brunn
parent a0c5530042
commit ffd71bd058
1 changed files with 1 additions and 1 deletions

View File

@ -69,6 +69,6 @@ class MailActivity(models.Model):
# To not be blocked we must add it to constraint condition
if activity.user_id.id != SUPERUSER_ID and activity.team_id and \
activity.user_id and \
activity.user_id not in self.team_id.member_ids:
activity.user_id not in activity.team_id.member_ids:
raise ValidationError(
_('The assigned user is not member of the team.'))