Commit Graph
100 Commits
Author SHA1 Message Date
Oliver 93c53315cc Unit test fixes 2021-10-05 17:35:10 +11:00
Oliver dd760bfecd Add filtering by "completed" status for purchase order line items 2021-10-05 17:15:41 +11:00
Oliver 5e951ef64b Add 'filtering' for purchase order line item table 2021-10-05 16:57:33 +11:00
Oliver 87f1bd87e7 Add button to receive selected items 2021-10-05 16:52:24 +11:00
Oliver 8684b55582 PEP fixes 2021-10-05 16:39:18 +11:00
Oliver 05d8f2b216 Remove outdated unit test case 2021-10-05 16:35:11 +11:00
Oliver ce7552bc5b JS linting 2021-10-05 16:10:46 +11:00
Oliver 1ea9b6f4cf PEP fixes 2021-10-05 16:10:00 +11:00
Oliver dd4428464d Receiving items against a purchase order now makes use of the API forms
- Delete old unused code
- Improve serializer validation
2021-10-05 16:05:18 +11:00
Oliver a579bc8721 Initialize destination field 2021-10-05 15:10:16 +11:00
Oliver b75e817447 Construct bare-bones API form 2021-10-05 14:57:50 +11:00
OliverandGitHub e2c3690cb8 Merge pull request #2094 from SchrodingersGat/auto-allocation-improvements
Refactor of build order stock assignment
2021-10-05 13:19:45 +11:00
Oliver e39f1c320c Merge remote-tracking branch 'inventree/master' into auto-allocation-improvements 2021-10-05 12:53:47 +11:00
OliverandGitHub e3e296dd24 Merge pull request #2101 from SchrodingersGat/completed-output-table-fix
Fixes for build output tables
2021-10-05 12:52:35 +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
OliverandGitHub 5c26769999 Merge pull request #2100 from SchrodingersGat/barcode-field-fix
Fix for "barcode" field in purchase order receive serializer
2021-10-05 12:31:44 +11:00
Oliver 99503a60d3 Fix for "barcode" field in purchase order receive serializer
- Allow blank values!
2021-10-05 12:16:41 +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 7ecd4c70e7 JS linting 2021-10-05 11:02:57 +11:00
Oliver e7d78db87b Fixes for unit tests 2021-10-05 10:53:11 +11:00
OliverandGitHub 09d0dd20fe Merge pull request #2097 from eeintech/companies_admin
Fix plural name for Companies in Admin interface
2021-10-05 10:40:04 +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 f6cf84f912 Form now works for "tracked" build outputs 2021-10-05 08:48:50 +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 0c04bfaa85 Move "rebuild_thumbnails" to being a management command
- Does not run every time the server reboots
- Has to be called manually
- Normally does not need to be run and is a long-running process!
2021-10-05 08:05:26 +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 a9d5b776d3 Adds error handling of nested form fields in the API form processing layer
- Muy complejo
- But the results speak for themselves!
 -This will need to be rolled out into the coming refactor...
2021-10-04 22:41:59 +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 22d6d49b97 Create a select2 stockitem input and a quantity input for each allocation row 2021-10-04 17:42:47 +11:00
Oliver cd657daf50 Fixes for stockitem rendering in API forms
- Also improved rendering for other models
2021-10-04 17:41:09 +11:00
Oliver 49dc88abbc Add configurable options for the stockitem renderer 2021-10-04 17:31:38 +11:00
Oliver eba0d15fe4 Rough layout of javascript function
- allocateStockToBuild
- provide build ID and part ID
- optionally provide output ID
- optionally provide list of part ID to filter against
2021-10-04 16:11:15 +11:00
OliverandGitHub dfdbb4f7d1 Update version.py
Bumped version number for dev branch
2021-10-04 09:35:21 +11:00
OliverandGitHub b7ff50ca87 Merge pull request #2090 from SchrodingersGat/po-api-fix
Fix for purchase order API
2021-10-03 01:33:23 +10:00
Oliver 8c78d3b8ea Add unit test 2021-10-03 01:03:40 +10:00
Oliver 6d448d8475 Handle internal django errors when receiving purchase order items via the API
(cherry picked from commit 9355c68024)
2021-10-03 00:24:09 +10:00
OliverandGitHub 16dcd8adf6 Merge pull request #2084 from eeintech/show_part_delete
Show part delete button when part still active
2021-10-01 08:46:25 +10:00
OliverandGitHub 172d184a4d Merge pull request #2086 from SchrodingersGat/search-fix
Fix for search page
2021-09-30 22:13:38 +10:00
Oliver 7e81f419d7 Refactor search results for stock items and locations 2021-09-30 20:23:41 +10:00
Oliver ab9d247531 server-side pagination for manufacturer part table 2021-09-30 20:17:10 +10:00
Oliver e36039b03f Server-side pagination for part category search results 2021-09-30 20:15:54 +10:00
Oliver b9c8e46e1c Fixes for supplierpart table
- Paginate on server side
2021-09-30 20:12:27 +10:00
Oliver 15d96a3288 Fix for URL in supplier parts table 2021-09-30 19:50:16 +10:00
Oliver 4ced13466a Use "original_search" rather than "search" 2021-09-30 17:57:19 +10:00
Oliver 6cf144c61f Retain "original" search parameter in query 2021-09-30 17:53:14 +10:00
OliverandGitHub b3422e592d Update README.md 2021-09-30 10:46:22 +10:00
OliverandGitHub 819934af7e Merge pull request #2083 from SchrodingersGat/search-results
Display "full_name" rather than "name" in quick search bar
2021-09-30 09:42:50 +10:00
Oliver b1730914c3 Display "full_name" rather than "name" in quick search bar 2021-09-29 22:12:20 +10:00
OliverandGitHub 344383d3d4 Merge pull request #2082 from SchrodingersGat/stock-item-delete
Override the "delete" behaviour for StockItem API
2021-09-28 10:57:14 +10:00
Oliver 62e62af5fc PEP style fixes 2021-09-28 10:41:30 +10:00
Oliver d9704f4123 Add unit test for deleting stock items via the API 2021-09-28 10:41:03 +10:00
Oliver 2d9ca7c1b6 Do not rebuild the entire StockItem tree every time a single StockItem is deleted! 2021-09-28 10:36:01 +10:00
Oliver 16e00962f5 Override the "delete" behaviour for StockItem API
- Mark for deletion instead of calling database delete
- Returns (almost) instantly instead of hanging
- Much better UI experience when performing bulk delete operations
2021-09-28 10:14:25 +10:00
OliverandGitHub eb48c6ebdb Delete app_issue.md 2021-09-28 09:29:14 +10:00
OliverandGitHub b623f34881 Merge pull request #2079 from SchrodingersGat/url-fix
URL fixes
2021-09-27 14:32:41 +10:00
Oliver 26e3dbd9d0 Remove debug message 2021-09-27 11:46:14 +10:00
Oliver ef01bdff07 Fix links in part table 2021-09-27 11:42:47 +10:00
Oliver beaa93f9b5 Fix ?display= URLs for part stock view 2021-09-27 11:41:24 +10:00
OliverandGitHub b3c8bd7779 Merge pull request #2075 from SchrodingersGat/default-supplier-fix
Default supplier fix
2021-09-24 12:35:28 +10:00
Oliver f53aac0784 Remove "default_supplier" field when duplicating a part 2021-09-24 12:04:36 +10:00
Oliver d2b9993e96 Fix form filters for "default_supplier" 2021-09-24 12:04:25 +10:00
OliverandGitHub 39cab4690d Merge pull request #2071 from inventree/dependabot/pip/django-3.2.5
Build(deps): Bump django from 3.2.4 to 3.2.5
2021-09-23 21:51:23 +10:00
OliverandGitHub 2e1277839e Merge pull request #2067 from SchrodingersGat/warning-improvements
Improve 'health status' warnings
2021-09-22 09:34:23 +10:00
OliverandGitHub b123135df6 Merge pull request #2068 from rocheparadox/master
css for part to occupy full height - fix for bug Inventree#1848
2021-09-22 09:06:03 +10:00
Oliver 5443beef65 Improve 'health status' warnings
- Don't show error message if only non-critical warnings present
2021-09-20 17:15:31 +10:00
OliverandGitHub ae3c9817be Merge pull request #2062 from SchrodingersGat/app-issue-template
Add template for app issues
2021-09-17 22:34:45 +10:00
Oliver 8d6d16c07b Add template for app issues 2021-09-17 22:13:13 +10:00
OliverandGitHub 7b2b01c26f Merge pull request #2060 from SchrodingersGat/character-test
Adds a test for non-standard characters via API
2021-09-17 21:48:10 +10:00
Oliver e7963f8a85 test fixes 2021-09-17 21:06:07 +10:00
Oliver 11cc0c7ced Adds a test for non-standard characters via API 2021-09-17 20:53:18 +10:00
OliverandGitHub d73a7176fd Merge pull request #2055 from SchrodingersGat/test-template-table-fix
Fix callback for test template table
2021-09-14 10:58:57 +10:00
Oliver 5bd5c61b9d Fix callback for test template table 2021-09-14 10:43:40 +10:00
OliverandGitHub 1643a2ccb2 Merge pull request #2054 from matmair/fix-for-2004
Fix for 2004
2021-09-14 10:00:19 +10:00
OliverandGitHub 95924852a4 Merge pull request #2053 from SchrodingersGat/contributing
Update contributing.md
2021-09-13 20:29:09 +10:00
Oliver dfd500097e Update contributing.md
(cherry picked from commit 398842d6e5)
2021-09-13 20:03:31 +10:00
Oliver 7a7684b018 Merge branch 'l10'
# Conflicts:
#	InvenTree/locale/de/LC_MESSAGES/django.po
#	InvenTree/locale/el/LC_MESSAGES/django.po
#	InvenTree/locale/en/LC_MESSAGES/django.po
#	InvenTree/locale/es/LC_MESSAGES/django.po
#	InvenTree/locale/fr/LC_MESSAGES/django.po
#	InvenTree/locale/he/LC_MESSAGES/django.po
#	InvenTree/locale/id/LC_MESSAGES/django.po
#	InvenTree/locale/it/LC_MESSAGES/django.po
#	InvenTree/locale/ja/LC_MESSAGES/django.po
#	InvenTree/locale/ko/LC_MESSAGES/django.po
#	InvenTree/locale/nl/LC_MESSAGES/django.po
#	InvenTree/locale/no/LC_MESSAGES/django.po
#	InvenTree/locale/pl/LC_MESSAGES/django.po
#	InvenTree/locale/ru/LC_MESSAGES/django.po
#	InvenTree/locale/sv/LC_MESSAGES/django.po
#	InvenTree/locale/th/LC_MESSAGES/django.po
#	InvenTree/locale/tr/LC_MESSAGES/django.po
#	InvenTree/locale/vi/LC_MESSAGES/django.po
#	InvenTree/locale/zh/LC_MESSAGES/django.po
2021-09-13 10:15:08 +10:00
Oliver 6f932551d4 Merge remote-tracking branch 'inventree/l10_crowdin' into l10
# Conflicts:
#	InvenTree/locale/de/LC_MESSAGES/django.po
#	InvenTree/locale/el/LC_MESSAGES/django.po
#	InvenTree/locale/es/LC_MESSAGES/django.po
#	InvenTree/locale/fr/LC_MESSAGES/django.po
#	InvenTree/locale/he/LC_MESSAGES/django.po
#	InvenTree/locale/id/LC_MESSAGES/django.po
#	InvenTree/locale/it/LC_MESSAGES/django.po
#	InvenTree/locale/ja/LC_MESSAGES/django.po
#	InvenTree/locale/ko/LC_MESSAGES/django.po
#	InvenTree/locale/nl/LC_MESSAGES/django.po
#	InvenTree/locale/no/LC_MESSAGES/django.po
#	InvenTree/locale/pl/LC_MESSAGES/django.po
#	InvenTree/locale/ru/LC_MESSAGES/django.po
#	InvenTree/locale/sv/LC_MESSAGES/django.po
#	InvenTree/locale/th/LC_MESSAGES/django.po
#	InvenTree/locale/tr/LC_MESSAGES/django.po
#	InvenTree/locale/vi/LC_MESSAGES/django.po
#	InvenTree/locale/zh/LC_MESSAGES/django.po
2021-09-13 10:01:45 +10:00
Oliver 0bd37e61ea Fix: New translations django.po from Crowdin 2021-09-12 23:44:36 +10:00
Oliver 1501820760 Fix: New translations django.po from Crowdin 2021-09-12 23:44:35 +10:00
Oliver 0d3f738c79 Fix: New translations django.po from Crowdin 2021-09-12 23:44:33 +10:00
Oliver ad662531d2 Fix: New translations django.po from Crowdin 2021-09-12 23:44:32 +10:00
Oliver 422fa63b10 Fix: New translations django.po from Crowdin 2021-09-12 23:44:31 +10:00
Oliver 9d2f52c203 Fix: New translations django.po from Crowdin 2021-09-12 23:44:30 +10:00
Oliver 4fbc9fa70e Fix: New translations django.po from Crowdin 2021-09-12 23:44:28 +10:00
Oliver ea05883589 Fix: New translations django.po from Crowdin 2021-09-12 23:44:27 +10:00
Oliver dd9a5d218d Fix: New translations django.po from Crowdin 2021-09-12 23:44:26 +10:00
Oliver 93c3a805bf Fix: New translations django.po from Crowdin 2021-09-12 23:44:25 +10:00
Oliver a5e02f37d9 Fix: New translations django.po from Crowdin 2021-09-12 23:44:23 +10:00