Add check if ir.cron is in the pool for issue775
This commit is contained in:
1 parent
42c7e522f5
commit
418682c9f5
1 file changed
+2
@@ -241,6 +241,8 @@ class TrytonServer(object):
|
||||
while True:
|
||||
for dbname in Pool.database_list():
|
||||
pool = Pool(dbname)
|
||||
if 'ir.cron' not in pool.object_name_list():
|
||||
continue
|
||||
cron_obj = pool.get('ir.cron')
|
||||
thread = threading.Thread(
|
||||
target=cron_obj.pool_jobs,
|
||||
|
||||
Reference in new issue
Block a user