Contract management plugin for Netbox
Project description
Contract pluggin
Overview
The pluggin adds contracts and invoices model to Netbox.
It allows to register contract with objects.
Add invoices to contracts.
Installation
Activate venv
To ensure our plugin is accessible to the NetBox installation, we first need to activate the Python virtual environment that was created when we installed NetBox. To do this, determine the virtual environment's path (this will be /opt/netbox/venv/
if you use the documentation's defaults) and activate it:
$ source /opt/netbox/venv/bin/activate
Install the package
$ python3 -m pip install netbox-contract
Configure NetBox
Finally, we need to configure NetBox to enable our new plugin. Over in the NetBox installation path, open netbox/netbox/configuration.py
and look for the PLUGINS
parameter; this should be an empty list. (If it's not yet defined, go ahead and create it.) Add the name of our plugin to this list:
# configuration.py
PLUGINS = [
'netbox_contract',
]
Customize the location of the plugin's menu:
# configuration.py
PLUGINS_CONFIG = {
'netbox_contract': {
'top_level_menu': True
}
}
Customize the internal partie field.
Internal partie reference the legal entity of your organization that is a partie to the contract.
# configuration.py
FIELD_CHOICES = {
'netbox_contract.Contract.internal_partie': (
('Nagravision SARL', 'Nagravision SARL', 'green'),
('Nagra USA', 'Nagra USA', 'green'),
('Nagra India', 'Nagra India', 'green'),
)
}
Run database migrations
(venv) $ cd /opt/netbox/netbox/
(venv) $ python3 manage.py migrate
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file netbox-contract-2.0.0.tar.gz
.
File metadata
- Download URL: netbox-contract-2.0.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd7b58ac27a36658650791b0a8cbdfbc52a3425049998b18ddc62693f32fb52 |
|
MD5 | cfa53f9f9286d3f0b74766284c909222 |
|
BLAKE2b-256 | e6819a923b2a98b1821e383869f6c6eb962086e054f4ed2df1d991b0c751d5e6 |
File details
Details for the file netbox_contract-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: netbox_contract-2.0.0-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 718ebad7915473bab7de6ffd66d83cee95935cac40e48ba092f4be1f65a4e91a |
|
MD5 | fea792ced6038ba0bb6a44e1cf04b9fd |
|
BLAKE2b-256 | fa934218a42591d7bfb8963ef7de63789436cb7918ff962262703dd100c8f4e4 |