2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

Fix - needs a global function to schedule

This commit is contained in:
Oliver
2022-01-13 10:53:33 +11:00
parent 519a1009ab
commit ae016730f8
2 changed files with 6 additions and 2 deletions

View File

@ -202,7 +202,7 @@ class ScheduleMixin:
Schedule.objects.create(
name=task_name,
func='plugin.registry.registry.call_plugin_function',
func='plugin.registry.call_function',
args=f"'{slug}', '{func_name}'",
schedule_type=task['schedule'],
minutes=task.get('minutes', None),