Commit Graph

8965 Commits

Author SHA1 Message Date
Oliver
d70137dcbd
Merge pull request #167 from SchrodingersGat/api-tests
Api tests
2019-04-27 01:07:53 +10:00
Oliver Walters
64636a6d60 Merge remote-tracking branch 'inventree/master' 2019-04-27 01:05:12 +10:00
Oliver Walters
f111a42058 Added API tests for Part API
- Uses DRF APITestCase class
2019-04-27 01:03:11 +10:00
Oliver Walters
443041de3a Update key_file generator script
- Prevent overwrite of key file if it already exists
- Option to force key file overwrite if required
2019-04-26 23:56:19 +10:00
Oliver
165264bd0e
Merge pull request #166 from SchrodingersGat/copy-button
Move 'duplicate' button to the Part options drop-down
2019-04-26 23:44:01 +10:00
Oliver
040f719b68
Merge pull request #156 from SchrodingersGat/api-cleanup
Api cleanup
2019-04-26 23:40:10 +10:00
Oliver Walters
69b34a0ff2 Move 'duplicate' button to the Part options drop-down 2019-04-26 23:39:33 +10:00
Oliver Walters
529beb3d58 Abstract DRF serializer validation
- Subclass InvenTree.InvenTreeModelSerializer
- Ensures model data is checked too (after serializer checks are performed)
2019-04-26 23:34:15 +10:00
Oliver Walters
e57a8cdcd1 Fix rendering of BOM table view
- Edit and delete rows now works
2019-04-26 23:32:22 +10:00
Oliver Walters
cec61655cf Fix table rendering for 'used_in' view 2019-04-26 23:12:06 +10:00
Oliver Walters
08aca6a5a8 Fix rendering for company part list 2019-04-26 23:08:13 +10:00
Oliver Walters
dee10e4922 Fix rendering of part supplier table 2019-04-26 23:04:08 +10:00
Oliver Walters
1c710e71a5 Modal forms now display non-field errors
- Critical for errors not relating to a particular field (e.g. unique_together)
- Ref: https://stackoverflow.com/questions/7419535/how-to-render-django-form-errors-not-in-a-ul
2019-04-26 23:01:04 +10:00
Oliver Walters
73282801c9 Fix for BOM display
- Perhaps need to make this cleaner, later on
- Is this too much data pushed through the API?
2019-04-26 22:41:29 +10:00
Oliver Walters
accec07fe9 BOM serializer now validates against model
- Need to call instance.clean()
- https://stackoverflow.com/questions/40697648/django-dry-model-form-serializer-validation
2019-04-26 22:36:44 +10:00
Oliver Walters
ac46a4a413 Merge remote-tracking branch 'inventree/master' 2019-04-26 21:44:44 +10:00
Oliver Walters
da540e1b26 Improve BOM API endpoint
- Origin at /api/bom
- Add detail view
- Add create power to list view
2019-04-26 21:44:38 +10:00
Oliver Walters
4e3b8bdd92 Remove draft feature from Part RUD endpoint 2019-04-26 21:44:38 +10:00
Oliver Walters
6c3041d99c Remove 'draft' function from StockItem RUD endpoint 2019-04-26 21:44:38 +10:00
Oliver Walters
9ae5ea3876 Add RUD endpoint for Company 2019-04-26 21:44:38 +10:00
Oliver Walters
6f7082a919 Peppy 2019-04-26 21:44:38 +10:00
Oliver Walters
9b4e86f36a Add ability to create a new supplierpart from the API 2019-04-26 21:44:37 +10:00
Oliver Walters
907bccf748 Add SupplierPart detail API
- RUD view
2019-04-26 21:44:37 +10:00
Oliver Walters
5ee339bb27 Add 'delete' button for supplier parts 2019-04-26 21:44:37 +10:00
Oliver
948c118695
Merge pull request #164 from SchrodingersGat/search-page
Display available stock in part search page
2019-04-26 21:42:36 +10:00
Oliver Walters
7593d855cb Merge remote-tracking branch 'inventree/master' 2019-04-26 21:40:26 +10:00
Oliver
475dd8d8fb
Merge pull request #163 from SchrodingersGat/makefile-fox
Remove makefile comment which breaks make on windows
2019-04-26 21:34:08 +10:00
Oliver Walters
deebc80088 Display available stock in part search page 2019-04-26 21:31:53 +10:00
Oliver Walters
906353eb52 Remove makefile comment which breaks make on windows 2019-04-26 21:25:40 +10:00
Oliver Walters
27c7f6589c Merge remote-tracking branch 'inventree/master' 2019-04-26 21:25:00 +10:00
Oliver Walters
edad4f9cf1 Merge branch 'master' of https://github.com/SchrodingersGat/InvenTree
# Conflicts:
#	Makefile
2019-04-26 21:24:03 +10:00
Oliver Walters
14e9b71ebb Remove comment line in Makefile which doesn't play nice on Windows 2019-04-26 18:51:37 +10:00
Oliver
2ff5f57f60
Merge pull request #154 from SchrodingersGat/tracking
Tracking
2019-04-25 23:42:30 +10:00
Oliver Walters
d78841a665 Allow editing of more stockitem options 2019-04-25 23:35:48 +10:00
Oliver Walters
8d5850248e PEP fixes 2019-04-25 23:25:52 +10:00
Oliver Walters
1f8632c77c Improved response message for stocktake 2019-04-25 23:19:22 +10:00
Oliver Walters
990808ec03 Fix code to move multiple parts via AJAX / JSON 2019-04-25 23:16:54 +10:00
Oliver Walters
757cd539b2 Enforce 'notes' field for StockItem move
- Better error handling for StockItem.move
2019-04-25 23:01:03 +10:00
Oliver Walters
38fa89d1da Bug fix for javascript
- If location not set for StockItem, display special text
2019-04-25 22:34:30 +10:00
Oliver Walters
053e9c9795 Add a stock tracking index
- Shows entire history of stocktracking items
2019-04-25 22:11:10 +10:00
Oliver Walters
79f8736b6b Add note on creation of StockItem 2019-04-25 22:10:46 +10:00
Oliver Walters
533fdb71c4 Javascript function to render stock tracking table
- Added extra info to StockItemTracking serializer
2019-04-25 22:04:32 +10:00
Oliver
cece28fc50
Merge pull request #151 from SchrodingersGat/flake
Moved flake settings to setup.cfg
2019-04-25 21:28:51 +10:00
Oliver Walters
a3bbd5f8cb Increase allowed complexity 2019-04-25 21:09:02 +10:00
Oliver
77298c8fe8
Merge pull request #152 from SchrodingersGat/requirements
Cleanup requirements file
2019-04-25 21:07:29 +10:00
Oliver Walters
c6b5177f5c Cleanup requirements file 2019-04-25 21:04:33 +10:00
Oliver Walters
f9a54af9b1 Moved flake settings to setup.cfg 2019-04-25 20:59:41 +10:00
Oliver
f0ab95306b
Merge pull request #150 from SchrodingersGat/coverage
Improving test coverage
2019-04-25 19:00:56 +10:00
Oliver Walters
470dee48b3 Ignore some files for coverage report 2019-04-25 18:54:36 +10:00
Oliver Walters
1112e5e3e2 PEP fixes 2019-04-25 18:50:22 +10:00