mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
make args wider
This commit is contained in:
parent
9c342e1fe3
commit
74a3abc4a2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user