Commit Graph

1226 Commits

Author SHA1 Message Date
Oliver 4ee55847f1 Refactor attachment tables 2021-11-28 14:21:20 +11:00
Oliver 0949bac175 serializer fixes 2021-11-28 14:21:09 +11:00
Oliver 6582fd3d04 Add 'link' field to attachment serializer 2021-11-28 12:57:37 +11:00
Oliver e9ed7bffc9 adds a "link" field to the InvenTree attachment model
- Allows attachments to also serve as links to external files
2021-11-28 12:53:01 +11:00
Oliver ef7a9b5152 Adds a simple endpoint for accessing serial number information for a Part instance
- This is not included by default in the "part detail" endpoint as it must be calculated!
2021-11-27 00:11:18 +11:00
Oliver e53e3b4a51
Merge pull request #2350 from matmair/matmair/issue2347
Fix sidebar translation
2021-11-23 12:57:11 +11:00
Matthias d884e62be1
[FR] Confirm to W293
Fixes #2335
2021-11-23 00:28:23 +01:00
Matthias d79e9a62b4
fix trans tags 2021-11-22 23:42:29 +01:00
Matthias 933c420844
fix sidebar translation
Fixes #2347
2021-11-22 20:24:22 +01:00
Oliver 7399333256
Merge pull request #2328 from SchrodingersGat/stock-item-create-fix
Record the user information when creating or updating a stock item
2021-11-18 23:34:41 +11:00
Oliver 15a0d260f8 Handle case where user is not specified 2021-11-18 23:15:40 +11:00
Oliver 7ca36a092e convert remaining serializers 2021-11-18 23:01:19 +11:00
Oliver bfb32f3bf6 Record the user information when creating or updating a stock item 2021-11-18 21:26:26 +11:00
Oliver ae7cde7547
Merge pull request #2281 from SchrodingersGat/stock-sort
Adds "stock" column sorting for stock table
2021-11-10 12:20:07 +11:00
Oliver 986a13864a Exclude 'serial_int' when exporting stock data 2021-11-10 11:37:30 +11:00
Oliver 919f182c25 Remove debug messages 2021-11-10 11:30:11 +11:00
Oliver ba11a73f91 Fix for saving stock item objects 2021-11-10 11:22:58 +11:00
Oliver 6a534e0322 Improve options for installing a part into another part
- Allow "variant" parts when the BOM specifies that variants are allowed for a particular BOM item
2021-11-10 11:11:52 +11:00
Oliver 067f12d5eb PEP fixes 2021-11-10 11:01:12 +11:00
Oliver 25ce043337 Adjust ordering sequence for StockItem 2021-11-10 11:00:43 +11:00
Oliver 738ba4eddf Data migration to initially update serial number fields for all stock items
- Also automatically updates serial_int field when saving StockItem
2021-11-10 10:59:48 +11:00
Oliver 257be18d79 Add 'serial_int' field to stockitem model
- Allows for integer sorting of stock items
2021-11-10 10:47:17 +11:00
Oliver 85b906f49d Adds "stock" column sorting for stock table 2021-11-10 09:48:52 +11:00
Oliver c128438ebf Fix missing actions for stock item 2021-11-08 14:47:14 +11:00
Oliver 185924e1f8 More linting 2021-11-05 00:35:47 +11:00
Oliver 78ac40083a Fixes for stock api unit tests
- Remove old unit tests
- Require quantity when creating a new stock item
2021-11-05 00:27:26 +11:00
Oliver f27acde934 More fixes
- Allow stock item creation for inactive parts
- Better handling of successful stock item creation
- Disable fields rather than hiding them
2021-11-05 00:02:55 +11:00
Oliver b41dbba2b0 Correctly handle serialization of newly created stock 2021-11-04 23:18:59 +11:00
Oliver 3be4acf3ef More refactoring for notifications
- Adds default behaviour for successful stock item creation
2021-11-04 23:09:49 +11:00
Oliver 97326d9fb2 Display stock item owner (if applicable) 2021-11-04 22:45:11 +11:00
Oliver 3b56895f4d Merge branch 'master' into stock-item-forms 2021-11-04 10:34:49 +11:00
Oliver 476a1342c1 Improve notification of 'low stock' parts:
- Traverse up the variant tree
- Enable subscription by "category"
2021-11-04 00:28:10 +11:00
Oliver e5435df2ba Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-03 15:46:30 +11:00
Oliver ecccae1081 Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-03 13:34:45 +11:00
Oliver c4ea3ecf6f Bug fix for stock location table
(cherry picked from commit 44794d7b78520023e3b70da61dc13938bfd4bd14)
2021-11-03 13:33:57 +11:00
Oliver b1c23e30f5 Fix CSS for user badges 2021-11-03 11:59:20 +11:00
Oliver 1d42d33c8e style fixes 2021-11-03 11:33:44 +11:00
Oliver be7b224f14 Adds API endpoint for serialization of stock items 2021-11-03 10:12:42 +11:00
Oliver 2b69d9c2af Correctly serialize stock when creating via the API 2021-11-03 07:41:47 +11:00
Oliver ad4c4f2a6d Stock item duplication now works with the API forms 2021-11-03 07:28:21 +11:00
Oliver aaf27d4098 Adds new buttons to create a new stock item 2021-11-03 07:27:58 +11:00
Oliver ef305032c9 Create new stock location via API forms 2021-11-02 20:04:54 +11:00
Oliver 0d9c08b49c StockLocationEdit 2021-11-02 19:58:25 +11:00
Oliver 4c8bc9580c stock-item-edit is looking OK now 2021-11-02 19:51:46 +11:00
Oliver d357e982f5 Revert stock-item detail template to mater 2021-11-02 19:43:17 +11:00
Oliver c3c4aca829 Fix action buttons for stock-item detail page 2021-11-02 19:29:26 +11:00
Oliver 8725837460 Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-02 19:25:11 +11:00
Oliver 6f9ac4a850 - Fixes for construct_absolute_url function
- Refactor notification email generation
- Update template file
- Add separate templates folder for email
2021-11-02 00:40:25 +11:00
Oliver 9cbc2b82b5
Merge pull request #2208 from rocheparadox/master
Email notification for low stock
2021-11-01 22:45:49 +11:00
rocheparadox 76c1e936db Added post_delete hook to StockItem
moved the business logic of 'deciding if a low stock notification has to be sent' to part.tasks
2021-11-01 08:25:59 +05:30