2
0
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:
Christoph
2023-07-05 02:19:13 +02:00
committed by GitHub
parent 9cf629ccc5
commit cf0d30b11c
10 changed files with 304 additions and 6 deletions

View File

@ -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()