Commit Graph

141 Commits

Author SHA1 Message Date
eeintech 429f9d0a13 Removed test print 2021-03-12 11:19:20 -05:00
eeintech 89c7c87f1e Add stock filter for parts assemblies 2021-03-12 11:18:19 -05:00
Oliver Walters 1c3b017283 Improve server-side pagination of SalesOrderLineItem 2021-03-02 12:33:41 +11:00
Oliver Walters 34def10765 Delete un-needed code 2021-02-28 21:44:10 +11:00
Oliver Walters 1239d4af16 Fixes result limiting
- Required for index page
2021-02-28 20:16:05 +11:00
Oliver Walters 487794a938 Server side pagination for the part list 2021-02-28 16:29:25 +11:00
Oliver Walters 8ce7b572cc Optionally paginate the StockList table on the server
- This makes the bootstrap table interface SO FREAKING MUCH FASTER
- Search is now performed on the server too!
2021-02-28 16:18:45 +11:00
Oliver Walters f1c8c48d35 Fix API permissions for stock adjustment 2021-02-27 20:17:52 +11:00
Oliver Walters 949a541ee0 Add more options to StockList api
- Limit query results
- Order by various fields
2021-02-23 13:43:26 +11:00
Oliver Walters dffff89e9d Add option to filter out variants in stock table 2021-02-21 20:08:23 +11:00
Oliver Walters e8d73c78eb Fixes for unit tests 2021-01-28 22:37:28 +11:00
Oliver Walters d61ae8532a Dialog for checking multiple items into a stock location 2021-01-28 21:36:57 +11:00
Oliver Walters fc32d99327 Add "updated_before" and "updated_after" filter for stock API 2021-01-15 16:39:50 +11:00
Oliver Walters ba915da22b Filter StockItem API by staleness 2021-01-06 22:20:54 +11:00
Oliver Walters 9dc9c0fcb7 Auto-populate expiry date for stockitem when created via the API
(Now with unit testing!)
2021-01-05 00:21:26 +11:00
Oliver Walters 6d4c81e68b Add ability to filter by 'expired' status in API 2021-01-04 00:19:48 +11:00
Oliver Walters ae7fbd6112 Add PEP8-naming extension for flake
- Enforcing python naming checks
2020-11-12 21:53:04 +11:00
Oliver Walters e4f2eecb3b Remove defunct 'build_order' field from StockItem model
- This is now handled by the new-and-improved build system, no longer required
2020-11-10 20:12:39 +11:00
Oliver Walters fdcef7b699 Add "install_into" field for BuildItem
- Points to which output stock item it will be going into
2020-10-20 20:37:57 +11:00
Oliver Walters 634410294b Display table of items received against a particular purchase order
- Adds new tab to "Purchase Order" view
- Adds ability to filter StockList API by purchase_order ID
2020-10-19 11:40:57 +11:00
Oliver Walters 3c175a6c8d Update creation of StockItem via API
- If no location is specified, but a default location exists for the part, use that
- If a location is specified (even if it is null) then the specified value is used instead
2020-10-18 22:24:45 +11:00
Oliver Walters dc2c9aa662 Add InvenTreeRoleMixin
- Simplifies permission requirements for views
- e.g. 'part.view' rather than 'part.view_partcategory'
2020-10-06 11:29:38 +11:00
Oliver Walters 16d720b62c Update permission requirements for API
- Automatically use model permissions by default!
-
2020-10-06 00:36:55 +11:00
Oliver Walters f253bf1843 Add ability for stock API to be filtered by installed status 2020-09-28 20:07:25 +10:00
Oliver Walters 8a4597be6a Adds ability to filter stock API results by batch code 2020-09-23 09:11:46 +10:00
Oliver Walters f19a727a02 Allow searching by stock item batch code 2020-09-19 23:40:06 +10:00
Oliver Walters 083bfe05c0 Add ability to search stock API
- serial number
- part information
2020-09-19 21:49:07 +10:00
Oliver Walters 8615cad711 Stock: Fix serializers.py
- Use of read_only PrimaryKeyRelatedField was breaking POST via API
2020-08-31 20:08:07 +10:00
Oliver Walters 2f77007dbe Significant query speed improvements to stock list API
- Thanks, django-debug-toolbar!
- Gah, django DRF is the worst. Enforcing a PrimaryKeyRelatedSerializer seems to really improve speed
2020-08-15 21:15:11 +10:00
Oliver Walters cebba6909c Revert thing 2020-08-09 21:21:12 +10:00
Oliver Walters 3336eb9f45 Default stock list behaviour is to only show in_stock items 2020-08-09 21:12:49 +10:00
Oliver Walters 0da9e0f834 Add "sent_to_customer" filter 2020-08-09 21:10:21 +10:00
Oliver Walters 402301e165 Add ability to filter stock items by "depleted" status 2020-08-08 17:06:22 +10:00
Oliver Walters 408c6a4040 Filter stock list by "customer" 2020-06-05 09:05:57 +10:00
Oliver Walters 4cbf2099fa Add stock item filtering by serial number range 2020-05-26 11:49:48 +10:00
Oliver Walters e4d10279fa Include 'key' field in StockItemTestResult serializer 2020-05-24 20:04:34 +10:00
Oliver Walters e63342418f Improve / simplify logic for file attachments against test result object 2020-05-23 11:30:42 +10:00
Oliver Walters 4bd0872b2c Expose some more stock item data over API 2020-05-22 23:33:27 +10:00
Oliver Walters 18b7baa5b9 Allow stock item filtering by IPN
(cherry picked from commit bd9aad935594e4022299567667faeb149f6d2375)
2020-05-18 13:33:41 +10:00
Oliver Walters 3b53437f46 Add 'attachment_detail' to the TestResult serializer 2020-05-16 23:53:28 +10:00
Oliver Walters 608057da69 Add option for user_detail in stockitemtestresult serializer 2020-05-16 23:36:03 +10:00
Oliver Walters e02b692ab2 Improve API filtering for StockItem 2020-05-16 23:19:16 +10:00
Oliver Walters 197a3e6731 Fixes for Stock API 2020-05-16 23:12:43 +10:00
Oliver Walters 45556058d2 Allow files to be uploaded alongside a test report
- Attach the file to the stock item
- Link the uploaded attachment to the test report
2020-05-16 22:53:23 +10:00
Oliver Walters f3c71bd96f API interface for StockItemTestResult 2020-05-16 20:56:36 +10:00
Oliver Walters 366d4b2143 Add new attechment functionality to new models
- Giving the ol' refactor tractor a fresh coat of paint
2020-05-12 21:40:42 +10:00
Oliver Walters 2369b40bbf Ensure user gets saved when uploading attachment via API 2020-05-12 21:11:38 +10:00
Oliver Walters 0851a925fb Add ability to filter by whether the part is serialized or not 2020-05-12 20:18:28 +10:00
Oliver Walters 4615fbc0d8 Abillty to filter stock list by serial number 2020-05-12 20:15:37 +10:00
Oliver Walters b9d0c60189 Pepper 2020-05-12 08:12:42 +10:00