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
Oliver Walters
51da26d21d
Filter builds by "overdue" status
2020-12-15 23:27:59 +11:00
Oliver Walters
802dd5174c
Add "target_date" for Build model
...
- Add "overdue" status to Build serializer
2020-12-15 23:24:37 +11:00
Oliver Walters
96277edcf1
Improvements to progress bar function
2020-10-21 00:49:17 +11:00
Oliver Walters
e02536071d
Add a "completed" field to the Build model
...
- Keeps track of how many outputs have been produced
- Will not be directly editable by the user
2020-10-20 23:59:37 +11:00
Oliver Walters
5405ad566e
Add 'reference' to API serializer
2020-10-19 22:53:40 +11:00
Oliver Walters
b0891c921c
Working towards better build allocation:
...
- Improve data serialization in API
- Javascript bug fixes
- Load the build allocation table using jQuery
2020-04-25 21:13:38 +10:00
Oliver Walters
d5f3498238
Add a "sales_order" reference to the Build model
...
- If a build order is made to fulfil a sales order
- Add sales_order filtering to the Build API
- Pass initial information through to the BuildCreate view
2020-04-25 13:15:45 +10:00
Oliver Walters
f0ffb0f8c0
Ability to include part_detail in build API
...
- Build list now uses bootstrapTable
2020-04-11 19:59:16 +10:00
Oliver Walters
789712acbe
Rename Build.URL -> Build.link
2020-04-06 11:28:35 +10:00
Oliver Walters
bb5ed0b9fe
Fix bug for BuildItem with no part image
...
- Can't request a field what don't exist
2019-06-03 21:25:37 +10:00
Oliver Walters
a305301b95
Switch between display and edit mode for build allocations
2019-05-27 08:07:38 +10:00
Oliver Walters
1d36ea3e2e
Add a 'full_name' field for Part
...
- Combines IPN | Name | Variant
- Use this to display in most views
2019-05-12 12:16:04 +10:00
Oliver Walters
29f7b1a32b
Revert "More intelligent passing of context data in AjaxView"
...
This reverts commit fbb9a708f560f841fab50b811ea1b5a32cf20521.
2019-05-01 22:52:33 +10:00
Oliver Walters
fbb9a708f5
More intelligent passing of context data in AjaxView
...
- If context is not explicitly supplied, use default get_context_data() function
2019-05-01 22:45:41 +10:00
Oliver Walters
7f63a94f15
Cancel build function now works
2019-05-01 22:22:14 +10:00
Oliver Walters
395db4df38
Pepe fixes
2019-04-30 00:18:58 +10:00
Oliver Walters
5c5411132a
First pass at build allocation table
...
- Uses bootstrap-table "detailView" function
2019-04-29 23:56:02 +10:00
Oliver Walters
192f604b76
Override get_queryset for BuildItem API view
...
- Special management to allow filtering by part
2019-04-29 23:45:05 +10:00
Oliver Walters
c29827e45a
Add API endpoint and serializer for BuildItem model
2019-04-29 22:59:42 +10:00
Oliver Walters
17d9d25fb9
Require Build and StockItem to be unique_together in BuildItem class
2019-04-29 22:56:40 +10:00
Oliver Walters
ed3ae30248
Documentation for Part app
2019-04-27 22:18:07 +10:00
Oliver Walters
d9169a0dd1
Add docstrings for Build app
2019-04-27 20:35:14 +10:00
Oliver Walters
ebcbf9a90e
Add status_text to API
2019-04-17 23:33:19 +10:00
Oliver Walters
338a30b50e
API endpoint for build list
...
- Changed part/build table to bootstrap table (ajax)
2019-04-16 08:31:43 +10:00