fix: Translation strings with trailing spaces (#21192)

This commit is contained in:
Suraj Shetty
2020-04-08 09:32:41 +05:30
committed by GitHub
parent 28753268e6
commit da6806e6bc
6 changed files with 12 additions and 13 deletions

View File

@@ -439,7 +439,7 @@ class AccountsController(TransactionBase):
if account_currency not in valid_currency:
frappe.throw(_("Account {0} is invalid. Account Currency must be {1}")
.format(account, _(" or ").join(valid_currency)))
.format(account, (' ' + _("or") + ' ').join(valid_currency)))
def clear_unallocated_advances(self, childtype, parentfield):
self.set(parentfield, self.get(parentfield, {"allocated_amount": ["not in", [0, None, ""]]}))