make args wider

This commit is contained in:
Matthias 2022-05-15 23:26:46 +02:00
parent 9c342e1fe3
commit 74a3abc4a2
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -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