-
I'm trying to make a custom action plugin that recieve data and perform action. to begin with, id like a very simlple example of a plugin that recieve a string such as item_name and respond with the same item name it recieved. in the samples I can only find the API to perform action and give response but not how to use the data from the plugin to perform an action, how to do that? thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@Zontex The docs are your friend here: https://inventree.readthedocs.io/en/latest/extend/plugins/action/ example code is shipped in the codebase. The current user can be accessed as |
Beta Was this translation helpful? Give feedback.
@Zontex The docs are your friend here: https://inventree.readthedocs.io/en/latest/extend/plugins/action/ example code is shipped in the codebase.
The current user can be accessed as
self.user
, the provided data asself.data
as seen in the mixin definition.