This is plugin for InvenTree, which provides support additional build data. It adds a panel to the build details view. In this panel you can add relevant data that are needed in case you wand to have PCBs manufactured by an external partner. Other production relevant figures are extracted from the InvenTree database, e.g. number of different components in the BOM.
All data is stored in the metadata area of the build when tie Save button is pressed. When the panel is initialized all data is loaded from the metadata field and available for panel and report. So the panel always shows the actual data when it is displayed.
All parameters are exported to the report context using the report mixin. So a report can be created. A report template is provided that creates a request for quotation that can be sent out to the external partner. This RFQ is based on data in the InvenTree database and on additional data from the plugin. So for the report to work you need to setup companies with addresses and contacts.
Actually this is not finished but a good example for panel UI, data storage and reporting.
Just copy python and templates to src/inventree/plugins and load the report template.
Here you can chose your company from the IvenTree database. This is used ad a sender in the RFQ report.