Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
a1e4fd32 by Cédric Krier at 2023-03-10T13:10:08+01:00
Set login name as default email from address
- - - - -
2 changed files:
- trytond/doc/topics/configuration.rst
- trytond/trytond/config.py
Changes:
=====================================
trytond/doc/topics/configuration.rst
=====================================
@@ -445,6 +445,8 @@
from: "Company Inc" <[email protected]>
+Default: The login name of the :abbr:`OS (Operating System)` user.
+
retry
~~~~~
=====================================
trytond/trytond/config.py
=====================================
@@ -4,6 +4,7 @@
import logging
import os
import urllib.parse
+from getpass import getuser
import __main__ as main
@@ -82,6 +83,7 @@
self.add_section('ssl')
self.add_section('email')
self.set('email', 'uri', 'smtp://localhost:25')
+ self.set('email', 'from', getuser())
self.add_section('session')
self.set('session', 'authentications', 'password')
self.set('session', 'max_age', str(60 * 60 * 24 * 30))
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/a1e4fd323f67d369080f0da393e1ce71a98249e9
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/a1e4fd323f67d369080f0da393e1ce71a98249e9
You're receiving this email because of your account on foss.heptapod.net.