Oliver
2b344f1f25
PEP style fixes
2022-02-15 13:30:14 +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
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 Walters
00d7cf88e8
Throw validation error if no build outputs have been started
2022-02-01 15:58:18 +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 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
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
93173ef1ee
Merge remote-tracking branch 'inventree/master' into partial-shipment
...
# Conflicts:
# InvenTree/order/serializers.py
2021-12-02 23:58:52 +11:00
Matthias
dc65634abc
use mixin on all serializers whos models use ReferenceIndexingMixin
2021-12-01 23:36:21 +01:00
Oliver
da6c723184
Merge branch 'master' into partial-shipment
...
# Conflicts:
# InvenTree/order/serializers.py
2021-11-29 22:59:36 +11:00
Oliver
32be39774f
PEP fixes
2021-11-28 22:36:47 +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
68e2b0850b
Merge branch 'master' into partial-shipment
...
# Conflicts:
# InvenTree/build/serializers.py
# InvenTree/order/templates/order/so_sidebar.html
2021-11-26 08:25:51 +11:00
Matthias
d884e62be1
[FR] Confirm to W293
...
Fixes #2335
2021-11-23 00:28:23 +01:00
Oliver
521ec4f1e6
Merge branch 'master' into partial-shipment
...
# Conflicts:
# InvenTree/order/serializers.py
2021-11-18 23:43:36 +11:00
Oliver
7ca36a092e
convert remaining serializers
2021-11-18 23:01:19 +11:00
Oliver
bff9f0828a
Adds API endpoint to allocate stock items against a SalesOrder
...
- SalesOrderAllocations are no longer created manually
- API endpoint performs data validation
- Multiple line items can be allocated at once
- Adds unit testing for new API endpoint
2021-10-26 23:51:36 +11:00
Oliver
50a79770e5
Un-comment lines in build.serializers
2021-10-20 23:37:26 +11:00
Oliver
f83dc134ef
linting
2021-10-20 23:20:43 +11:00
Oliver
8805b0a553
Add similar auto field capabilities to build order
2021-10-20 23:14:52 +11:00
Oliver
542b4113a1
Improvements for build output completion
...
- Check if the output is fully allocated (throw error if not)
- Reload tables after actions performed
2021-10-17 21:37:10 +11:00
Oliver
54dd05a24d
Add an API serializer to complete build outputs
2021-10-14 23:13:01 +11:00
Oliver
7dfffcd5d3
Move "build unallocate" functionality to the API
...
- Much much simpler now!
- Filtering is against bom_item, not part
- Fixes a bug with the new (reasonably complex) substitution framework
2021-10-14 10:32:43 +11:00
Oliver
ddcfc8996c
Further fixes for API / serializer classes
...
- Correctly catch and re-throw errors
- Provide request to serializer context
2021-10-05 12:12:37 +11:00
Oliver
dd4db6442e
PEP fixes
2021-10-05 00:45:49 +11:00
Oliver
8f298f71ef
Add detail API endpoint for BuildItem model
2021-10-04 23:57:02 +11:00
Oliver
5ded23fd99
Fixes for serializer validation
...
- Note: use the validate() function!
- Ref: https://www.django-rest-framework.org/api-guide/serializers/
- override serializer.save() functionality for simpler operation
2021-10-04 23:44:23 +11:00
Oliver
074466f087
Updates for stock allocation form
...
- Data submission
- Nested error handling
- Button callbacks to remove rows
2021-10-04 23:20:03 +11:00
Oliver
99c1819c69
Implement API endpoint and serializer for allocation of stock items
2021-10-04 18:26:30 +11:00
Oliver
f8b22bc7b7
Refactor BuildAttachment model
2021-08-16 10:49:31 +10:00
Oliver
bec98d355a
Improvements
...
- part_detail defaults to True for BuildSerializer
- Handle invalid parent for BuildOrder
2021-07-09 00:49:19 +10:00
Oliver
be6ecd9587
Fixes for BuildOrder forms
2021-07-09 00:36:54 +10:00
Oliver
245c04367b
Refactor BuildOrderEdit form
2021-07-08 23:57:42 +10:00
7b3bc33b88
using owner serializer
2021-07-04 00:15:44 +02:00
4f31cee6a3
Merge branch 'master' of https://github.com/inventree/InvenTree into extend-build-order
2021-07-04 00:02:29 +02:00
4f432d4db2
extend api with issuer
...
#1356
2021-07-03 01:47:54 +02:00
Oliver
30ac5dba55
Display attachment upload date
2021-06-30 17:44:23 +10:00
Oliver
a7d60cf5ad
Exposes BuildOrderAttachment objects to the REST API
2021-06-30 10:49:33 +10:00
Oliver
245c9bfd28
Enhancement for the BuildItem API / serializer
...
- Add optional "part_detail" information
- Add optional "build_detail" information
- Add optional "location_detail" information
2021-06-18 19:08:54 +10:00
Oliver Walters
9baf856d75
Fixes for build item allocation rendering
2021-06-01 16:14:26 +10:00
Oliver Walters
d1ce0f062e
Improve unit testing for StockItem API
2021-01-04 01:22:43 +11:00
Oliver Walters
a8704a05d6
PEP style fixes
2020-12-16 16:15:39 +11:00