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
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
29588ff2c5
Refactor the POReceive API endpoint
...
- Lessons learned from the build allocate
- Use serializer.save() directly
2021-10-05 11:20:43 +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
76668b0d54
Remove unused code (views / forms)
2021-10-05 09:21:33 +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
17df4ca91e
Refactor allocation form
...
- The data is already loaded in the main table!
- Why would we want to throw that data away?
2021-10-05 01:05:42 +11:00
Oliver
28509dbd68
Remove old unit test
2021-10-05 00:48:03 +11:00
Oliver
dd4db6442e
PEP fixes
2021-10-05 00:45:49 +11:00
Oliver
40f1ccf9f8
Remove BuildAutoAllocate form
2021-10-05 00:40:10 +11:00
Oliver
416ba51e22
Add auto-fill option to select2 inputs on API forms
...
- WIll fill input if a single result is returned
2021-10-05 00:39:22 +11:00
Oliver
8a90b9df6d
Improve clean() function for BuildItem model
...
- BuildItemDelete now handled by API forms
- BuildItemEdit now handled by API forms
2021-10-05 00:14:31 +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
75a35773c6
More unit tests
2021-10-04 20:44:15 +11:00
Oliver
957867f504
Implement unit tests for new build allocation API feature
2021-10-04 18:53:10 +11:00
Oliver
99c1819c69
Implement API endpoint and serializer for allocation of stock items
2021-10-04 18:26:30 +11:00
Oliver Walters
ecc7bd2d5b
Unit test fixes
2021-09-07 22:27:39 +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
f8b22bc7b7
Refactor BuildAttachment model
2021-08-16 10:49:31 +10:00
eeintech
ac3dcac641
Re-enabled installing stock items into others
2021-08-02 15:05:24 -04:00
Oliver
4381a16b0e
Template cleanup
2021-07-29 12:31:07 +10:00
Oliver
4ee0004c97
Filtering for Build and StockItem
2021-07-21 21:34:16 +10:00
Oliver
28b3432afe
Delete outdated unit test
2021-07-15 23:19:47 +10:00
Oliver
c61fc7c1df
Refactor part pricing page
2021-07-15 23:06:37 +10:00
Oliver
0fc558068f
Refactor BuildOrder pages
2021-07-15 22:40:14 +10:00
Oliver
df89008116
Refactor allocation page(s)
...
- Also perform null check on notes before displaying
2021-07-15 16:53:14 +10:00
Oliver
57851b0eaf
Refactor build orders display
2021-07-15 16:36:20 +10:00
Oliver
a0b3359d62
Fix filtering for build orders
2021-07-13 19:58:47 +10:00
Oliver
6e26bd0b71
Fixes for unit tests
2021-07-09 01:29:17 +10:00
Oliver
ecf47aa69d
Fix for BuildOrder reference default value
2021-07-09 01:20:29 +10:00
Oliver
9947a0cf90
PEP fix
2021-07-09 00:59:56 +10:00
Oliver
7e7fe7d63f
Refactor buildlist filtering
2021-07-09 00:58:17 +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
004b36b1df
Refactor BuildOrderCreate form
2021-07-09 00:18:03 +10:00
Oliver
5016d44b83
Add default value for BuildOrder reference
2021-07-09 00:15:49 +10:00
Oliver
245c04367b
Refactor BuildOrderEdit form
2021-07-08 23:57:42 +10:00
Oliver
fcc244b52f
Fixes for BuildOrder attachment API list
2021-07-08 10:50:34 +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
59b794f0e5
Cleanup old forms
2021-07-01 14:25:14 +10:00
Oliver
30ac5dba55
Display attachment upload date
2021-06-30 17:44:23 +10:00
Oliver
9b4db43232
Refactoring "attachment" tables to use the API
...
- Part attachments
- StockItem attachments
- PurchaseOrder attachments
- SalesOrder attachments
- BuildOrder attachments
2021-06-30 17:40:44 +10:00
Oliver
4e23dbd0af
Refactor delete views for SalesOrderAttachment and PurchaseOrderAttachment
2021-06-30 12:54:38 +10:00
Oliver
4d8e88c779
BuildAttachmentDelete form
2021-06-30 12:48:14 +10:00