Apply suggestions from code review

This commit is contained in:
Santiago L 2022-02-22 11:13:00 +01:00 committed by GitHub
parent 6eb3c62b83
commit 2cff0499cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -730,7 +730,7 @@ class TradeForm(NewActionForm):
# both users exist, no further action is necessary
return
# Creating receiver phantom account
# Create receiver (to) phantom account
if user_from and not user_to:
assert g.user.email == user_from
user = self.create_user(code)
@ -738,7 +738,7 @@ class TradeForm(NewActionForm):
self.user_to = user
return
# Creating supplier phantom account
# Create supplier (from) phantom account
if not user_from and user_to:
assert g.user.email == user_to
user = self.create_user(code)