Oliver
b00ae67d68
Pass dates in templates through the new template tag
2022-02-28 19:10:33 +11:00
Oliver
baab955756
Further fixes for unit tests
2022-02-25 17:17:34 +11:00
Oliver
d9e1302eaf
Fixes for unit testing
2022-02-25 16:42:35 +11:00
Oliver
fea6091e42
Fix incorrect inputs
2022-02-25 15:57:30 +11:00
Oliver
9e3406efc9
Add stock tracking code to indicate stock has been consumed by a build order
2022-02-25 15:56:09 +11:00
Oliver
bb164ed72a
Remove old unused functions
2022-02-25 15:47:07 +11:00
Oliver
3dde0dbb2b
PEP fixes
2022-02-25 15:43:45 +11:00
Oliver
ab82f07ef1
Bug fix for BuildOutputComplete serializer
...
- Actually use the provided "location" value!
2022-02-25 15:41:10 +11:00
Oliver
44008f33e2
Refactoring Build model functions
...
- Determining if a build order is correctly allocated has become more complex
- Complex BOM behaviours (e.g. variants, templates, and substitutes) have made it more difficult!
- Recently, a reference to the defining BomItem object was added to the BuildItem model
- Now, a simpler way is to check allocation against the parent BomItem
- It is much better, but means that a lot of refactoring and testing will be required!
2022-02-25 15:40:49 +11:00
Matthias
7be832cc9b
[BUG] Unable to create build output
...
Fix if no allocate set
Fixes #2663
2022-02-23 02:01:46 +01:00
Oliver
bc6839d56e
Spelling fix
2022-02-17 08:18:15 +11:00
Oliver
49fe528f4e
Merge pull request #2630 from matmair/coverage-fixes
...
Coverage fixes
2022-02-16 07:55:12 +11:00
Oliver
2b344f1f25
PEP style fixes
2022-02-15 13:30:14 +11:00
Oliver
09853fd3df
remove code which is now unused
2022-02-15 13:27:30 +11:00
Oliver
07af0902a3
Optionally auto-allocate stock items when creating a new build output
2022-02-15 13:27:14 +11:00
Oliver
24c13b04b6
Extract serial numbers from submitted form data
2022-02-15 13:19:41 +11:00
Oliver
f90a27d01d
Adds a new API endpoint for creating build outputs
2022-02-15 12:51:48 +11:00
Matthias
0eb6d46c4b
remove dead code
2022-02-13 20:23:15 +01:00
Matthias
0ad3b5bcba
ignore coverage in exsisting migrations
2022-02-13 17:45:46 +01:00
Matthias
e693fe1e41
fix migration coverage for build
2022-02-13 04:55:39 +01:00
Oliver
71f9399760
Cleanup
2022-02-10 00:50:21 +11:00
Oliver
0d7b94fbfa
Remove old form code which is no longer used
2022-02-10 00:48:06 +11:00
Oliver
96af074365
Adds API endpoint to delete build outputs
2022-02-10 00:46:38 +11:00
Oliver
78b1c7a22b
Skips some specific steps when importing data
...
- We need to prevent certain operations from running when we are importing data
- This is to prevent unique database constraints from being violated
- Do not register plugins during data import
- Do not launch notification events
2022-02-03 16:03:46 +11:00
Oliver
2b11d5ed52
Merge pull request #2595 from SchrodingersGat/build-refresh
...
Build refresh
2022-02-03 15:30:41 +11:00
Oliver
c6089a2828
Reload completed output table
2022-02-03 14:47:35 +11:00
Oliver
566fd87e86
PEP style fixes
2022-02-03 14:16:33 +11:00
Oliver
b387b4e173
Prevent build outputs being created with zero quantity
2022-02-03 14:13:13 +11:00
Oliver Walters
00d7cf88e8
Throw validation error if no build outputs have been started
2022-02-01 15:58:18 +11:00
Oliver Walters
318e84883a
Adds a warning if no build outputs are created
2022-02-01 15:51:38 +11:00
Matthias
967efae8f1
make simpler
2022-01-20 23:55:48 +01:00
Oliver
fde2b03172
Merge remote-tracking branch 'inventree/master' into triggers
...
# Conflicts:
# InvenTree/plugin/mixins/__init__.py
2022-01-10 20:34:42 +11:00
Oliver
1243923944
Event refactoring
2022-01-10 17:28:44 +11:00
Oliver
886b1f1d72
Simplify event triggering
...
- add generic receivers for database actions
- exclude django_q tables, otherwise we get an infinite loop!
Ref: https://stackoverflow.com/questions/17507784/consolidating-multiple-post-save-signals-with-one-receiver/32230933#32230933
2022-01-10 17:24:53 +11:00
Oliver
13d8bf437a
PEP fixes
2022-01-10 09:02:11 +11:00
Oliver
5acd880f39
Fix for triggered events
2022-01-10 08:54:11 +11:00
Oliver
d765be8c73
Iterate through plugins in a separate background task
2022-01-09 22:58:59 +11:00
Oliver
6aa83796ea
PEP fixes
2022-01-09 22:15:59 +11:00
Oliver
da9fa1313c
Increased unit testing
2022-01-09 22:14:48 +11:00
Oliver
3e2e9aaf9e
Mark serializer fields as not required
2022-01-09 20:10:00 +11:00
Oliver
d8057e88e7
Fix messaging in build complete dialg
2022-01-09 07:50:08 +11:00
Oliver Walters
2bb1c4ea77
Remove old forms / outdated code
2022-01-07 11:34:33 +11:00
Oliver Walters
12b3a5c9cc
Validate and save the new serailizer
2022-01-07 11:33:27 +11:00
Oliver Walters
960784644f
Adds skeleton for new API endpoint for completing a build order
2022-01-07 10:50:29 +11:00
Matthias
2ec41b02f8
append information about next serial numbe to fnc call
...
Fixes #2484
2021-12-29 03:01:52 +01:00
Oliver
1dafa040f9
Move 'quantity' field
2021-12-11 01:08:18 +11:00
Oliver
d573668f81
Correctly allow "inherited" BOM items to be allocated to a build order
...
- Some back-end logic was not running correctly
2021-12-11 01:05:19 +11:00
Oliver
c36687af22
Add unit test for new API serializer
2021-12-08 23:45:47 +11:00
Oliver
93a240d9c3
Remove the "scheduled_for_deletion" field from the StockItem model
...
Reverts back to the original behaviour - stock items are just deleted
2021-12-05 18:14:14 +11:00
Oliver
120870712a
Merge pull request #2420 from SchrodingersGat/assigned-to-me
...
Assigned to me
2021-12-04 23:08:08 +11:00