Commit Graph

7417 Commits

Author SHA1 Message Date
eeintech
a735a3e15c Added migration file 2021-10-04 16:41:41 -04:00
eeintech
6e31a8111b Fix plural name for Companies in Admin interface 2021-10-04 15:57:07 -04: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
Oliver
dfdbb4f7d1
Update version.py
Bumped version number for dev branch
2021-10-04 09:35:21 +11: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
Oliver
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
eeintech
480ff5e6cb Hide submit button in modal when part is still active 2021-09-30 09:58:23 -04: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
eeintech
1e9ae927d4 Show part delete button when part still active 2021-09-29 11:48:27 -04:00
Oliver
b1730914c3 Display "full_name" rather than "name" in quick search bar 2021-09-29 22:12:20 +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
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
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
Oliver
2e1277839e
Merge pull request #2067 from SchrodingersGat/warning-improvements
Improve 'health status' warnings
2021-09-22 09:34:23 +10:00
rocheparadox
c1a827819c css for part to occupy full height - fix for bug Inventree#1848 2021-09-20 17:00:45 +05:30
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
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
Oliver
5bd5c61b9d Fix callback for test template table 2021-09-14 10:43:40 +10:00
Matthias
847fb62ab5
js style 2021-09-13 23:25:13 +02:00
Matthias
c890a4a6d0
only add button per name once 2021-09-13 23:18:44 +02: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
Oliver
506af63d65 Fix: New translations django.po from Crowdin 2021-09-12 23:44:22 +10:00
Oliver
820631e2d1 Fix: New translations django.po from Crowdin 2021-09-12 23:44:21 +10:00
Oliver
c4e6b8d7d8 Fix: New translations django.po from Crowdin 2021-09-12 23:44:19 +10:00
Oliver
d4be8407fb Fix: New translations django.po from Crowdin 2021-09-12 23:44:18 +10:00
Oliver
97e984a4c0 Fix: New translations django.po from Crowdin 2021-09-12 23:44:17 +10:00
Oliver
9615ea2e1b Fix: New translations django.po from Crowdin 2021-09-12 23:44:15 +10:00
Oliver
e2dbdbf1a2 Fix: New translations django.po from Crowdin 2021-09-12 23:44:14 +10:00
github-actions[bot]
cfce9c6b73 updated translation base 2021-09-12 13:15:43 +00:00
Oliver Walters
06c03039da Add version related tags
- Docs URL points to correct documentation version
- Display if we are in "development" version
2021-09-12 23:13:55 +10:00
github-actions[bot]
de9b53cc0f updated translation base 2021-09-12 12:29:48 +00:00
Oliver Walters
7b21270baf Bump version number 2021-09-12 22:08:51 +10:00
Oliver
0d24f3be8b Fix: New translations django.po from Crowdin 2021-09-11 13:54:59 +10:00
Oliver
45dfeb4614 Fix: New translations django.po from Crowdin 2021-09-11 12:47:26 +10:00
Oliver
4aa829877e Fix: New translations django.po from Crowdin 2021-09-11 11:45:01 +10:00
Oliver
79a0140d71 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-08 15:20:13 +10:00
github-actions[bot]
3f172c24ef updated translation base 2021-09-08 04:34:30 +00:00
Oliver
ca7d779116 Fix: New translations django.po from Crowdin 2021-09-08 14:15:50 +10:00
Oliver
8e85203be3 Fix: New translations django.po from Crowdin 2021-09-08 14:15:49 +10:00
Oliver
6cee801659 Fix: New translations django.po from Crowdin 2021-09-08 14:15:47 +10:00
Oliver
def20d2923 Fix: New translations django.po from Crowdin 2021-09-08 14:15:45 +10:00
Oliver
821fe81411 Fix: New translations django.po from Crowdin 2021-09-08 14:15:44 +10:00
Oliver
aee8ca886f Fix: New translations django.po from Crowdin 2021-09-08 14:15:42 +10:00
Oliver
ed0cb33510 Fix: New translations django.po from Crowdin 2021-09-08 14:15:41 +10:00
Oliver
fcc8e14a5b Fix: New translations django.po from Crowdin 2021-09-08 14:15:40 +10:00
Oliver
e47c7322b8 Fix: New translations django.po from Crowdin 2021-09-08 14:15:39 +10:00
Oliver
4ca40ca83c Fix: New translations django.po from Crowdin 2021-09-08 14:15:37 +10:00
Oliver
4a7e71b0a2 Fix: New translations django.po from Crowdin 2021-09-08 14:15:36 +10:00
Oliver
8121ab32c5 Fix: New translations django.po from Crowdin 2021-09-08 14:15:35 +10:00
Oliver
50f673d25d Fix: New translations django.po from Crowdin 2021-09-08 14:15:34 +10:00
Oliver
79d3ef982a Fix: New translations django.po from Crowdin 2021-09-08 14:15:32 +10:00
Oliver
2fd179bf58 Fix: New translations django.po from Crowdin 2021-09-08 14:15:31 +10:00
Oliver
6adcf60ff8 Fix: New translations django.po from Crowdin 2021-09-08 14:15:29 +10:00
Oliver
dfeffff118 Fix: New translations django.po from Crowdin 2021-09-08 14:15:28 +10:00
Oliver
6f3eb77ac9 Fix: New translations django.po from Crowdin 2021-09-08 14:15:27 +10:00
Oliver
b9b23a3853 bug fix 2021-09-08 14:14:14 +10:00
github-actions[bot]
52793856c2 updated translation base 2021-09-08 03:30:27 +00:00
Oliver
829dd0d637
Merge pull request #2043 from SchrodingersGat/received-stock-items
Fixes for purchase order stock table
2021-09-08 13:29:05 +10:00