Do not validate empty email in trytond-admin command

Closes #13837
This commit is contained in:
Cédric Krier
2025-01-26 00:47:27 +01:00
parent 8770a0183f
commit d6764027f1
+5 -1
View File
@@ -104,7 +104,11 @@ def get_parser_cron():
def get_parser_admin():
from trytond.tools.email_ import validate_email
from trytond.tools.email_ import validate_email as _validate_email
def validate_email(value):
if value:
return _validate_email(value)
parser = get_parser()
parser.add_argument(