Fill user email with the party email
issue11357 review391761003
This commit is contained in:
1 parent
8af2d88cbc
commit
9ebbb36190
1 file changed
+5
@@ -143,6 +143,11 @@ class User(avatar_mixin(100), DeactivableMixin, ModelSQL, ModelView):
|
||||
}])
|
||||
cls.write(*to_write)
|
||||
|
||||
@fields.depends('party', 'email')
|
||||
def on_change_party(self):
|
||||
if not self.email and self.party:
|
||||
self.email = self.party.email
|
||||
|
||||
@classmethod
|
||||
def _format_email(cls, users):
|
||||
for user in users:
|
||||
|
||||
Reference in new issue
Block a user