Package: netbox-contract
Contract plugginOverviewThe pluggin adds contracts and invoices model to Netbox.It allows to register contract with objects.Add invoices to contracts.InstallationActivate venvTo ensure our plugin is accessible to the NetBox installation, we first need to activate the Pythonvirtual environmentthat 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/activateInstall the package$python3-mpipinstallnetbox-contractConfigure NetBoxFinally, we need to configure NetBox to enable our new plugin. Over in the NetBox installation path, opennetbox/netbox/configuration.pyand look for thePLUGINSparameter; 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.pyPLUGINS=['netbox_contract',]Customize the location of the plugin's menu:# configuration.pyPLUGINS_CONFIG={'netbox_contract':{'top_level_menu':True,'default_accounting_dimensions':{"account":"","project":"","cost center":""}}}Customize fields choices.Internal partie reference the legal entity of your organization that is a partie to the contract.# configuration.pyFIELD_CHOICES={'netbox_contract.Contract.internal_partie':(('Nagravision SARL','Nagravision SARL','green'),('Nagra USA','Nagra USA','green'),('Nagra India','Nagra India','green'),),'netbox_contract.Contract.currency':(('usd','USD'),('eur','EUR'),('chf','CHF'),('pln','PLN'),),'netbox_contract.Contract.status':(('Active','Active','green'),('Cancled','Canceled','red'),)}Run database migrations(venv)$cd/opt/netbox/netbox/(venv)$python3manage.pymigraterelease notesversion 2.0.0Add a new contract asignement model to allow the assignement of contract not only to Circuits. The support for the direct Contract to Circuit relation will be removed in version 2.1.0 . In Order to migrate existing relations contract_migration.py script is provided and can be run from the django shell.version 2.0.1Add support contract assignement panel to devices.version 2.0.2Add support for Netbox 3.5 which become the minimum version supported to accomodate the removal of NetBoxModelCSVForm class (replaced by NetBoxModelImportForm) .version 2.0.3#60Update contract quick search to also filter on fields "External reference" and "Comments".#49Manage permissions.version 2.0.4Add bulk update capability for contract assignement#63Correct an API issue on the invoice object.#64Add hierarchy to contract; New parent field created.#65Add end date to contact import form.Removed the possibility of add or modify circuits to contracts. The field becomes read only and will be removed in next major release.Make accounting dimensions optional.version 2.0.5#75Fix contract assignement for service providers.#73Add comment field to contract import form#72Add fields to the contract assignement bottom tablesRemove the 'add' actions from the contract assignment list viewversion 2.0.6#80Fix missing fields in the API.version 2.0.7#85Fix missing fields contract and invoice import and export forms.version 2.0.8#91Replace deprecated ( in netbox version 3.6) MultipleChoiceField.48Allow other plugin to inject visual in contract and invoice forms.[89] (https://github.com/mlebreuil/netbox-contract/issues/89) Add contract assignement to virtual machines.version 2.0.942Allow the selection of either providers or Service providers as contract third partie.Removed all reference to the direct assignement of circuits to contracts