2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00
Commit Graph

10329 Commits

Author SHA1 Message Date
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
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
8f298f71ef Add detail API endpoint for BuildItem model 2021-10-04 23:57:02 +11:00
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
074466f087 Updates for stock allocation form
- Data submission
- Nested error handling
- Button callbacks to remove rows
2021-10-04 23:20:03 +11:00
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
9ed502f1ae plugin name nicer 2021-10-04 12:31:31 +02:00
258d159093 human name for plugins 2021-10-04 12:31:12 +02:00
d1c2a399eb Default value for SLug is None 2021-10-04 12:19:43 +02:00
d6145fc803 fix test 2021-10-04 12:07:35 +02:00
63e7a9caee PEP fix 2021-10-04 12:06:27 +02:00
75a35773c6 More unit tests 2021-10-04 20:44:15 +11:00
957867f504 Implement unit tests for new build allocation API feature 2021-10-04 18:53:10 +11:00
99c1819c69 Implement API endpoint and serializer for allocation of stock items 2021-10-04 18:26:30 +11:00
22d6d49b97 Create a select2 stockitem input and a quantity input for each allocation row 2021-10-04 17:42:47 +11:00
cd657daf50 Fixes for stockitem rendering in API forms
- Also improved rendering for other models
2021-10-04 17:41:09 +11:00
49dc88abbc Add configurable options for the stockitem renderer 2021-10-04 17:31:38 +11:00
7654d176cb slugs for plugins 2021-10-04 07:59:07 +02:00
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
b416a13cc8 rename to make function of base class clearer 2021-10-04 00:53:01 +02:00
0333b3fc72 mixin for full app functions
mainly migrations right now
2021-10-04 00:48:21 +02:00
dfdbb4f7d1 Update version.py
Bumped version number for dev branch
2021-10-04 09:35:21 +11:00
b31c7ccd24 PEP fix 2021-10-03 15:02:47 +02:00
c5fc8ba6ab typo fix 2021-10-03 14:52:36 +02:00
d977aac6a0 fix test for actions 2021-10-03 14:51:37 +02:00
fadf4d5ca8 fix tests 2021-10-03 14:25:40 +02:00
094feec495 also run tests in samples 2021-10-03 14:23:13 +02:00
8fc2610a9d simplify loading 2021-10-03 14:16:21 +02:00
cd343d224b PEP fix 2021-10-03 13:44:30 +02:00
9695d50bf4 enable templates for plugins 2021-10-03 13:39:11 +02:00
04eee50653 initiate plugins on startup 2021-10-03 13:36:42 +02:00
fdfc65ad4d Fix: New translations django.po from Crowdin 2021-10-03 01:38:15 +10:00
f7a2f5927d Fix: New translations django.po from Crowdin 2021-10-03 01:38:13 +10:00
378f87ee08 Fix: New translations django.po from Crowdin 2021-10-03 01:38:12 +10:00
a48a013685 Fix: New translations django.po from Crowdin 2021-10-03 01:38:11 +10:00
af421a7d35 Fix: New translations django.po from Crowdin 2021-10-03 01:38:10 +10:00
f0ce58cfb9 Fix: New translations django.po from Crowdin 2021-10-03 01:38:08 +10:00
fb1ae01262 Fix: New translations django.po from Crowdin 2021-10-03 01:38:05 +10:00
d6ac20bb8a Fix: New translations django.po from Crowdin 2021-10-03 01:38:04 +10:00
f0adb19dd7 Fix: New translations django.po from Crowdin 2021-10-03 01:38:03 +10:00
c5c2b07a75 Fix: New translations django.po from Crowdin 2021-10-03 01:38:00 +10:00
c4f33f478f Fix: New translations django.po from Crowdin 2021-10-03 01:37:59 +10:00
9b95dd7961 Fix: New translations django.po from Crowdin 2021-10-03 01:37:58 +10:00
610b1b62a4 Fix: New translations django.po from Crowdin 2021-10-03 01:37:56 +10:00
2ad87a044c Fix: New translations django.po from Crowdin 2021-10-03 01:37:55 +10:00
0b70ba756d Fix: New translations django.po from Crowdin 2021-10-03 01:37:54 +10:00
b288072ac7 Fix: New translations django.po from Crowdin 2021-10-03 01:37:52 +10:00
ae016b0fe6 Fix: New translations django.po from Crowdin 2021-10-03 01:37:51 +10:00
6fc9e7868d Fix: New translations django.po from Crowdin 2021-10-03 01:37:49 +10:00
b7ff50ca87 Merge pull request #2090 from SchrodingersGat/po-api-fix
Fix for purchase order API
2021-10-03 01:33:23 +10:00