Oliver
d0f60766e0
exclude new field from admin view
2021-10-14 18:57:02 +11:00
Oliver
5c6a7b489c
Data migration for the Build model
2021-10-14 17:54:46 +11:00
Oliver
7ce0f817aa
Add a 'reference_int' field to the models, to be used as a secondary index
2021-10-14 17:45:43 +11:00
Oliver
e46875b0a3
Apply same fix to PurchaseOrder and SalesOrder lists
2021-10-14 14:31:25 +11:00
Oliver
233672d822
Add new functionality to InvenTreeOrderingFilter
...
- Allow ordering by multiple field aliases
- Simply way to implement "integer ordering" functionality
2021-10-14 14:25:39 +11:00
Oliver
0cdc82a4b3
Annotate BuildList queryset with integer cast of the reference
2021-10-14 14:24:17 +11:00
Oliver
4a6bd0123a
Bug fixes
2021-10-14 11:00:27 +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
be5c5496b2
Improvements to allocation of stock items against build orders
...
- Refactor functions for filtering stock using bom_item pk
- Allow selection of substitute items when allocating against build order
- Improvements for modal rendering
- Don't display filter drop-down if there are no filters available
2021-10-13 23:53:35 +11:00
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