==
This commit is contained in:
parent
e37774fff6
commit
5c2b3b0b2c
@ -28,5 +28,5 @@ class CoworkerRelation(models.Model):
|
||||
@api.constrains('coworker1', 'coworker2')
|
||||
def _check_if_coworker_is_same(self):
|
||||
"""Test si coworker1 est identique à coworker2"""
|
||||
if not self.coworker1 != self.coworker2:
|
||||
if self.coworker1 == self.coworker2:
|
||||
raise ValidationError(_('Coworker1 is same coworker2'))
|
||||
|
Loading…
Reference in New Issue
Block a user