From 74a3abc4a2221a6e15c94c860deae2738497fb08 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 15 May 2022 23:26:46 +0200 Subject: [PATCH] make args wider --- InvenTree/plugin/builtin/action/simpleactionplugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/plugin/builtin/action/simpleactionplugin.py b/InvenTree/plugin/builtin/action/simpleactionplugin.py index 97043d5223..54598e72cb 100644 --- a/InvenTree/plugin/builtin/action/simpleactionplugin.py +++ b/InvenTree/plugin/builtin/action/simpleactionplugin.py @@ -13,14 +13,14 @@ class SimpleActionPlugin(ActionMixin, InvenTreePlugin): NAME = "SimpleActionPlugin" ACTION_NAME = "simple" - def perform_action(self): + def perform_action(self, user=None, data=None): print("Action plugin in action!") - def get_info(self, user, data): + def get_info(self, user, data=None): return { "user": user.username, "hello": "world", } - def get_result(self): + def get_result(self, user=None, data=None): return True