Start pool in trytond

This is to register classes if no database names are in options and also the
custom routes.

issue10211
review340391002
This commit is contained in:
Cédric Krier committed 2021-03-23 23:56:54 +01:00
1 parent 45d406e270
commit 96a459ed96
1 file changed
+1
+1
View File
@@ -31,6 +31,7 @@ from trytond.pool import Pool
from trytond.modules import get_module_list, get_module_info
with commandline.pidfile(options):
Pool.start()
threads = []
for name in options.database_names:
thread = threading.Thread(target=Pool(name).init)