Commit 218344b9 authored by Théo Dorée's avatar Théo Dorée Committed by Romain Bignon

[societegenerale] Corrected validation condition to prevent recipient doublons

parent 1acf4cc5
......@@ -98,7 +98,7 @@ class TransferPage(LoggedPage, BasePage, PasswordPage):
class Item(MyRecipient):
def validate(self, obj):
return self.obj.id != self.env['account_id']
return self.obj.id != self.env['account_id'] and self.obj.id not in self.parent.objects
obj_id = Env('id')
obj_label = Env('label')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment