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
Oliver
ad0277a8c3
Merge branch 'master' into stock-item-forms
...
# Conflicts:
# InvenTree/stock/serializers.py
# InvenTree/stock/templates/stock/item_base.html
2021-11-01 12:00:40 +11:00
Oliver
360f0406b5
CSS updates
...
- Add template for filter lists
- Filter lists now layout horizontally
- Change flex-row to flex-wrap
2021-11-01 08:38:24 +11:00
rocheparadox
40da41959b
Created part.tasks file and moved notify_low_stock function to the same from InvenTree.tasks. The argument type is changed from StockItem to Part
...
Added trans to headers of table in email template of low_stock_notification.html
added is_part_low_on_stock() function to the part model to check if the part's stock has fallen below the minimum quantity
used offload_task function to run the low stock notification function asynchronously
2021-10-31 11:26:41 +05:30
rocheparadox
6ec2801fce
Facilitated translation for low stock notification subject
...
moved the message/content of low stock notification to html template
Facilitated translation in low stock notification html template file
2021-10-30 20:32:10 +05:30
rocheparadox
e0cd02ee60
added dispatch_uid to post_save signal of StockItem
2021-10-30 08:30:39 +05:30
Oliver
a689b77cfb
More tweaks
2021-10-30 13:18:11 +11:00
Oliver
c2a8cfd183
PEP style fixes
2021-10-30 12:57:49 +11:00
Oliver
4eea8c8193
Remove old tree classes
2021-10-30 00:18:41 +11:00
Oliver
3849ea8057
Rearranging buttons
2021-10-29 23:20:09 +11:00
rocheparadox
d8796f9535
Notify users who have starred a part when that part's stock quantity falls below the minimum quanitity/threshold through email.
2021-10-29 16:03:41 +05:30
Oliver
b41d1aed12
Refactor admin button for:
...
- build order
- part detail
- stock item
- stock location
- company detail
- manufacturer-part
- purchase order
- sales order
2021-10-29 17:07:35 +11:00
Oliver
890fd0f1a0
Remove nav tree
2021-10-29 10:54:15 +11:00
Oliver
5f139b4aa4
Refactor sidebar for "location" display
2021-10-29 00:43:58 +11:00
Oliver
e0d3facfac
Refactor sidebar for "stock item" page
2021-10-29 00:40:16 +11:00
Oliver
2778ff55da
Remove btn-default
2021-10-28 19:57:17 +11:00
Oliver
f8ac016d60
replace labels with badges
2021-10-28 17:41:40 +11:00
Oliver
05d350b6c8
Tweaks for settings pages
2021-10-28 12:38:33 +11:00
Oliver
ae2c3e8293
remove "panel-inventree" references
2021-10-28 08:31:36 +11:00
Oliver
8535dd7572
part category and stock location views
2021-10-27 23:53:41 +11:00
Oliver
a21959f54d
Refactor stock location view
2021-10-27 23:46:09 +11:00
Oliver
840187f577
refactor stock item page
2021-10-27 23:35:59 +11:00
Oliver
711b3ba923
remove "panel-default"
2021-10-27 23:08:15 +11:00
Oliver
e178a2c370
Refactoring for "stock" pages
2021-10-27 21:50:18 +11:00
Oliver
9df9aaa18f
breadcrumbs
2021-10-27 20:17:37 +11:00
Oliver
2d910022ac
Fix for supplier price breaks
...
- Make "price" field an InvenTreeMoneySerializer instance
- Add client-side validation for number inputs
2021-10-26 01:55:41 +11:00
Oliver
d3b1ecd65e
Add "owner" field
2021-10-20 23:44:01 +11:00
Oliver
4a0ed4b2a1
Start of API forms for stock item
2021-10-20 10:53:21 +11:00
Oliver
fb6f15f462
Delete a bunch of old template files
2021-10-17 22:57:15 +11:00
Oliver
a97a918860
cut out the fat
...
(removing dead code for outdated form views)
2021-10-17 21:46:33 +11:00
Oliver
9319113793
quick bug fix
2021-10-14 16:27:10 +11:00
Oliver
0581885ad5
Simplify BOM table buttons
2021-10-14 00:26:34 +11:00
Oliver
ab4c428031
Allow conversion of out-of-stock items
2021-10-11 11:31:23 +11:00
Oliver
535d45bce4
Remove outdated Views / Forms
2021-10-06 20:19:29 +11:00
Oliver
336b05aa4e
Exclude sales order allocations when searching stock
2021-10-06 17:42:00 +11:00
Oliver
95e7cc7a5d
Fixes for unit tests
2021-10-06 08:56:24 +11:00
Oliver
758e402a66
PEP style fixes
2021-10-05 23:06:12 +11:00
Oliver
6fd1abb07a
Remove unused view class
2021-10-05 22:58:28 +11:00
Oliver
0a2a81582e
Handle case where notes are not provided
2021-10-05 22:46:34 +11:00
Oliver
102f886d81
All stock adjustment actions ported to new scheme
...
- Bumped API version too
2021-10-05 22:26:21 +11:00
Oliver
f197d8b1da
Adds a DRF serializer for stock adjustments
...
- Currently the "StockCount" action has been transferred
2021-10-05 22:04:17 +11:00
Oliver
e39f1c320c
Merge remote-tracking branch 'inventree/master' into auto-allocation-improvements
2021-10-05 12:53:47 +11:00
Oliver
a3ba33cae8
Fixes for build output tables
...
- Only show "completed" builds in the "completed builds" table (should be obvious)
- Display "serial number" appropriately in build output allocation table
2021-10-05 12:32:54 +11:00
Oliver
563deb5ffa
Add ability to specify "source location" for stock allocations
...
- Defaults to build.take_from
- User-selectable at run-time
- Selected value affects select2 query
2021-10-05 10:38:18 +11:00
Oliver
ae0efe73d1
Further improvements to build allocation form
...
- Auto-allocation button ignores outputs which are complete
- StockItem API allows filtering by BomItem
- Quantity inputs are now auto-filled
- Display progress bar in the modal form
2021-10-05 08:25:10 +11:00
Oliver
62e62af5fc
PEP style fixes
2021-09-28 10:41:30 +10:00
Oliver
d9704f4123
Add unit test for deleting stock items via the API
2021-09-28 10:41:03 +10:00
Oliver
2d9ca7c1b6
Do not rebuild the entire StockItem tree every time a single StockItem is deleted!
2021-09-28 10:36:01 +10:00
Oliver
16e00962f5
Override the "delete" behaviour for StockItem API
...
- Mark for deletion instead of calling database delete
- Returns (almost) instantly instead of hanging
- Much better UI experience when performing bulk delete operations
2021-09-28 10:14:25 +10:00
Oliver Walters
ecc7bd2d5b
Unit test fixes
2021-09-07 22:27:39 +10:00
Oliver
5ab4be7025
Unit test fixes
2021-09-07 17:36:53 +10:00
Oliver
918106c225
Adds a background task to remove StockItem objects which are scheduled for deletion
2021-09-07 16:45:58 +10:00
Oliver
7d3cd03d6c
Add "scheduled_for_deletion" field to StockItem
...
- If set to True, this StockItem will be deleted (soon) by the background worker
- As deletion takes significant time, this prevents delete operations from blocking the UI
2021-09-07 16:28:57 +10:00
Matthias
0ebc45e834
replace i html tags
2021-09-02 00:18:47 +02:00
Matthias
6a420fd95c
replace bold tags
2021-09-02 00:17:12 +02:00
Oliver
610c05384b
Merge pull request #2020 from SchrodingersGat/mpn-sorting-fix
...
Mpn sorting fix
2021-08-26 22:06:06 +10:00
Oliver
bad246bca6
Fixes for ordering of stock table
2021-08-26 08:24:31 +10:00
Oliver
9c9407b1ab
Add unit test for catching bug
...
- Turns out that in an image was uploaded with more than ~2000 vertical pixels it would crash
- Smaller images worked fine?
2021-08-25 14:48:45 +10:00
Oliver
bb8b85c375
Separate purchase_price and purchase_price_currency for StockItem serializer
...
- Add "purchase_price_string" for a read-only stringified representation
- Unit testing
2021-08-23 21:44:12 +10:00
Oliver
23b2b56de4
StockItemAttachment
2021-08-16 10:56:00 +10:00
Erkut Alakuş
c564896355
Localization of item.quantity removed
...
Localization of quantity for different cultures(turkish in my case) using comma(,) instead of dot(.) leads syntax error in javascript code and prevents stock item history to load.
2021-08-09 12:11:53 +03:00
Oliver
69f242d11d
Merge pull request #1892 from eeintech/stock_installed_items
...
Re-enabled installing stock items into others
2021-08-04 09:01:28 +10:00
eeintech
172a08fbba
Removed old quantity setting lines
2021-08-03 09:53:08 -04:00
Oliver
f057937df0
Fix for non-integer serial numbers
2021-08-03 09:46:28 +10:00
eeintech
1c4924a4a5
Style duh
2021-08-02 15:14:55 -04:00
eeintech
ac3dcac641
Re-enabled installing stock items into others
2021-08-02 15:05:24 -04:00
eeintech
e9be3fb4ec
Redirect to stock index if stock item is completely depleted
2021-07-27 11:11:30 -04:00
Oliver
4ee0004c97
Filtering for Build and StockItem
2021-07-21 21:34:16 +10:00
Oliver
9cf372f633
PEP fixes
2021-07-21 21:24:18 +10:00
Oliver
85a40ec418
Tree exclusion for PartCategory and StockLocation
2021-07-21 21:23:30 +10:00
Oliver
140396ccdd
Merge pull request #1854 from SchrodingersGat/url-unit-test
...
Add unit test for validation of reverse url lookup
2021-07-21 11:09:10 +10:00
Oliver
893628d1b8
URL fixes
2021-07-21 10:52:14 +10:00
Oliver
598ea11211
Add manager class for StockItem
2021-07-21 09:28:58 +10:00
Oliver
4413699844
PEP fixes
2021-07-19 17:23:51 +10:00
Oliver
efb4f194b6
Refactor StockExportOptions form
2021-07-19 17:23:18 +10:00
Oliver Walters
753fe9c80f
Ordering and rendering for StockLocation
2021-07-18 21:15:51 +10:00
Oliver
533a3aa368
Refactor StockItem pages
2021-07-15 22:19:13 +10:00
Oliver
b1640fcc23
Refactor StockLocation pages
2021-07-15 21:38:05 +10:00
Oliver
2d2ad91545
Move "stock" part view
2021-07-15 12:52:36 +10:00
Oliver
0cb2b49333
Remove unused forms
2021-07-12 22:23:08 +10:00
Oliver
bd8b52d7d2
Merge pull request #1804 from SchrodingersGat/api-stock-adjustments
...
Api stock adjustments
2021-07-12 22:16:56 +10:00
Oliver
30fd3c8841
Unit test fixes
2021-07-12 22:03:36 +10:00
Oliver
77cfadad42
Add 'title' option for contsructed fields
2021-07-12 21:11:29 +10:00
Oliver
52eedef820
remove old StockAdjust view
2021-07-12 21:03:28 +10:00
Oliver
e9bf4b4cef
Add some more functionality to StockLocation page
2021-07-12 20:53:36 +10:00
Oliver
2ea4824030
Add option to move stock for a part
2021-07-12 20:45:45 +10:00
Oliver
9fc7976569
Refactor all "adjustment" forms to use the new API approach
2021-07-12 20:38:54 +10:00
Oliver
2bebf2d41a
Test fixes
2021-07-12 20:00:50 +10:00
Oliver
11ee8e8369
Raise error if specified quantity is above available quantity
2021-07-12 19:59:10 +10:00
Oliver
51314a0261
Refactor error messaging for stock adjustment API
2021-07-12 19:41:50 +10:00
Oliver
e04828214a
Refactor showApiError() function
2021-07-12 19:20:29 +10:00
Oliver
e3f85414fa
Stock API URL cleanup
2021-07-12 17:32:06 +10:00
Oliver
c045a3b6f6
Refactorin'
2021-07-11 20:36:52 +10:00
Matthias
03fb6e5c61
support leading zeros in serial numbers
2021-07-10 17:54:17 +02:00
Oliver
cbd291849c
More unit test fixes
2021-07-09 01:49:17 +10:00
Oliver
a985e11aa8
Simplify and add filters for StockList API endpoint
2021-07-08 20:10:22 +10:00
Oliver
c7f79a5a08
Fixes
2021-07-08 19:23:01 +10:00
Oliver
79d90b1c4a
Additional filtering options for name and IPN fields
2021-07-08 17:46:57 +10:00
Oliver
f0e7826fdc
Adds some more API filters for the StockItem endpoint
2021-07-08 17:44:52 +10:00
Oliver
81010994e7
Adds regex filtering for "batch" code on StockItem
2021-07-08 17:26:55 +10:00
Oliver
a2870b60d9
Merge pull request #1757 from matmair/stock-next-prev
...
Stock previous / next serial
2021-07-08 11:41:01 +10:00
Oliver
1a979fc113
Filtering fix for StockItem attachments
2021-07-08 10:41:18 +10:00
Matthias
2db42eff50
remove unneeded tag
2021-07-06 21:25:42 +02:00
Matthias
98c52c06ac
Revert "fetching supplier part for stock tables"
...
This reverts commit eaf191dc8d
.
2021-07-06 21:20:27 +02:00
Matthias
9ed2338162
bolder type for serial numbers
2021-07-06 21:10:42 +02:00
eeintech
87a7081185
Fixed supplier part detail handling in stock table
2021-07-06 14:32:16 -04:00
eeintech
6687661928
Fixes for stock modal and notes propagation to tracking items
2021-07-05 17:36:10 -04:00