InvenTree/InvenTree/plugins/plugin.py

19 lines
349 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
2021-09-24 23:22:48 +00:00
"""Base Class for InvenTree plugins"""
class InvenTreePlugin():
"""
2021-09-24 22:56:23 +00:00
Base class for a plugin
"""
# Override the plugin name for each concrete plugin instance
PLUGIN_NAME = ''
def plugin_name(self):
2021-09-24 23:22:48 +00:00
"""get plugin name"""
return self.PLUGIN_NAME
def __init__(self):
pass