2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 05:36:46 +00:00

mixin structure

This commit is contained in:
Matthias Mair 2021-10-12 00:33:14 +02:00
parent 2d2dbd2414
commit f964187016

View File

@ -55,4 +55,22 @@ POST {
}
```
For an example of a very simple action plugin, refer to `/InvenTree/plugin/builtin/action/simpleactionplugin.py`
For an example of a very simple action plugin, refer to `/InvenTree/plugin/builtin/action/simpleactionplugin.py`
### Integration Plugins
Integration Plugins provide a wide area of deep integration into the interface of InvenTree.
#### Mixins
Common usecases are covered by pre-supplied modules in the form of Mixins (similar to how (https://docs.djangoproject.com/en/3.2/topics/class-based-views/mixins/)[django] does it).
##### SettingsMixin
##### UrlsMixin
##### NavigationMixin
##### AppMixin
For an example of a pretty much full Integration Plugin, refer to `/InvenTree/plugin/samples/integration/sample.py`