6657d093d7
PEP fixes
2021-12-02 12:13:03 +01:00
b0fb5657e8
also validate serial number
2021-12-02 12:11:09 +01:00
d884e62be1
[FR] Confirm to W293
...
Fixes #2335
2021-11-23 00:28:23 +01:00
bfb32f3bf6
Record the user information when creating or updating a stock item
2021-11-18 21:26:26 +11:00
ba11a73f91
Fix for saving stock item objects
2021-11-10 11:22:58 +11:00
067f12d5eb
PEP fixes
2021-11-10 11:01:12 +11:00
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
257be18d79
Add 'serial_int' field to stockitem model
...
- Allows for integer sorting of stock items
2021-11-10 10:47:17 +11:00
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
476a1342c1
Improve notification of 'low stock' parts:
...
- Traverse up the variant tree
- Enable subscription by "category"
2021-11-04 00:28:10 +11:00
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
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
e0cd02ee60
added dispatch_uid to post_save signal of StockItem
2021-10-30 08:30:39 +05:30
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
2d9ca7c1b6
Do not rebuild the entire StockItem tree every time a single StockItem is deleted!
2021-09-28 10:36:01 +10:00
5ab4be7025
Unit test fixes
2021-09-07 17:36:53 +10:00
918106c225
Adds a background task to remove StockItem objects which are scheduled for deletion
2021-09-07 16:45:58 +10:00
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
4ee0004c97
Filtering for Build and StockItem
2021-07-21 21:34:16 +10:00
598ea11211
Add manager class for StockItem
2021-07-21 09:28:58 +10:00
6687661928
Fixes for stock modal and notes propagation to tracking items
2021-07-05 17:36:10 -04:00
51ebe30754
Merge remote-tracking branch 'inventree/master' into drf-api-forms
...
# Conflicts:
# InvenTree/company/forms.py
2021-07-02 11:26:09 +10:00
ea8b102897
style fix
2021-07-01 00:50:50 +02:00
fcdefc4f83
removing default_currency in fields
2021-07-01 00:40:26 +02:00
3a57093b4e
replace MoneyFields with inherited classes
2021-07-01 00:13:38 +02:00
04374c71c2
Annotate models with their API list view
...
- It will make sense, trust me
2021-06-25 00:17:58 +10:00
d87592aedb
use the default currency in forms
2021-06-05 13:22:11 +02:00
bca2f4a07b
feat(sales_order): Stock Items show the PO number
...
Stock items show the PO number that they were purchased on when being
viewed in the sales order allocation modal and when viewing the sales
order details.
2021-05-13 14:18:25 -06:00
30ff48d803
Fixes
2021-05-12 10:09:02 +10:00
68b53acbf1
remove old fields from the StockItemTracking model
2021-05-12 08:07:03 +10:00
03a231bffb
Updates
...
- Add StockHistoryCode to custom context
- Add simple form for editing stock item history
- Add tracking entry when stock status is changed
2021-05-11 23:38:26 +10:00
84bfffd5a7
Override 'add_note' when new StockItem is created
...
- This allows us to prevent the issue of duplicate notes being created
2021-05-11 22:51:29 +10:00
93e6eb6dc7
Unit test fixes
2021-05-11 22:26:03 +10:00
a1203aa1e5
Fixes for unit testing
2021-05-11 21:22:54 +10:00
0020e85397
Refactor add_tracking_entry
2021-05-11 20:56:20 +10:00
ed4da4d338
Improve introspection in migration file
2021-05-11 18:23:29 +10:00
70ad0ba0de
Improve reporting in stock history API
2021-05-11 17:41:17 +10:00
af53b341f0
Replace "addTrasactionNote" function with "add_tracking_entry"
...
- Does not add translated strings to the database
2021-05-11 17:17:48 +10:00
e59f467c79
Merge branch 'master' into spaces!
2021-05-08 12:27:19 +02:00
5ed17022f2
Fixed stock import as it was not validating the serial properly ( #1559 )
2021-05-07 07:57:16 +10:00
c1bcc60f0a
forgot a py
2021-05-06 14:41:26 +02:00
39d4129157
chery picked all fixed trans str from #1438 ( #1554 )
2021-05-06 20:29:58 +10:00
f2b0717d10
removes all lines consisting only of spaces
...
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
2dbd61c611
Stock return to customer fix, stock children item table fix
2021-04-19 11:25:39 -04:00
1bf72ee335
Added revision and stock item URL for label creation
2021-04-14 16:00:28 -04:00
20c455384e
added more translation-strings
2021-04-04 22:44:14 +02:00
2de6fcbfa4
added missing translation fields #753
2021-04-03 03:59:09 +02:00
b95d6a4ab2
Merge pull request #1327 from SchrodingersGat/installed-test-results
...
Read test results from installed items
2021-02-19 16:49:51 +11:00
6037f1452a
Unit testing for new feature
2021-02-19 15:50:32 +11:00
ea4b713eed
Allow adjustment for destroyed (or lost) stock
2021-02-19 15:13:56 +11:00