mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 03:30:54 +00:00
add report feature for stock locations (#5134)
* add report feature for stock locations * fix flake 8 errors * run pre-commit run --all-files to fix style errors * add new model * create default stock location
This commit is contained in:
@ -475,3 +475,18 @@ class ReturnOrderReportTest(ReportTest):
|
||||
self.copyReportTemplate('inventree_return_order_report.html', 'return order report')
|
||||
|
||||
return super().setUp()
|
||||
|
||||
|
||||
class StockLocationReportTest(ReportTest):
|
||||
"""Unit tests for the StockLocationReport model"""
|
||||
|
||||
model = report_models.StockLocationReport
|
||||
list_url = 'api-stocklocation-report-list'
|
||||
detail_url = 'api-stocklocation-report-detail'
|
||||
print_url = 'api-stocklocation-report-print'
|
||||
|
||||
def setUp(self):
|
||||
"""Setup function for the StockLocationReport tests"""
|
||||
self.copyReportTemplate('inventree_slr_report.html', 'stock location report')
|
||||
|
||||
return super().setUp()
|
||||
|
Reference in New Issue
Block a user