mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-27 01:58:44 +00:00
[Refactor] Stock tracking audit (#13101)
* Add "event_type" and "notes" support to AuditLog model * Register history entries for stock items * record stock edited events as normal updates * Remove legacy tracking entry generation code * Updated unit tests for all stock event types * remove legacy endpoints * remove legacy tables from UI * Updated docs * Data migration * Remove old models * Update docs * Updated playwright tests * Fix broken links * Update CHANGELOG.md * Cache CID value * Fix migration tests * Increase query threshold for unit test * Fix bug and add regression test * mark migration as one-way * flush events in the correct order * improve prefetch * Adjust row rendering
This commit is contained in:
1 parent
2ee5764b3b
commit
c4280c2a03
64 files changed
+3869
-2150
No files matched your search
@@ -145,7 +145,6 @@ export enum ApiEndpoints {
|
||||
|
||||
// Stock item API endpoints
|
||||
stock_item_list = 'stock/',
|
||||
stock_tracking_list = 'stock/track/',
|
||||
stock_test_result_list = 'stock/test/',
|
||||
stock_transfer = 'stock/transfer/',
|
||||
stock_remove = 'stock/remove/',
|
||||
|
||||
@@ -151,7 +151,7 @@ export const ModelInformationDict: ModelDict = {
|
||||
stockhistory: {
|
||||
label: () => t`Stock History`,
|
||||
label_multiple: () => t`Stock Histories`,
|
||||
api_endpoint: ApiEndpoints.stock_tracking_list,
|
||||
api_endpoint: ApiEndpoints.audit_log_list,
|
||||
icon: 'history'
|
||||
},
|
||||
build: {
|
||||
|
||||
Reference in new issue
Block a user