Commit Graph

12785 Commits

Author SHA1 Message Date
Oliver
1dee578907
Merge pull request #2931 from SchrodingersGat/more-api-functionality
Converting more forms to the API
2022-05-04 23:24:28 +10:00
Oliver Walters
82541ede32 More unit tests
- BuildOrderCancel
- StockItemInstall
- StockItemUninstall
2022-05-04 22:49:21 +10:00
Oliver
4053a91450
Merge pull request #2791 from matmair/matmair/issue2788
Preserve orders if companies are deleted
2022-05-04 22:23:47 +10:00
Matthias
055b9c9a46
remove duplicate endif 2022-05-04 13:57:35 +02:00
Oliver Walters
1c0fba0fca Add unit test for SalesOrderCancel API endpoint 2022-05-04 21:51:09 +10:00
Oliver Walters
7a5be35f10 Add unit tests for new purchase order API endpoints:
- PurchaseOrderCancel
- PurchaseOrderComplete
- PurchaseOrderIssue
2022-05-04 21:44:38 +10:00
Matthias
19d3b03280
fix double endif 2022-05-04 13:10:49 +02:00
Matthias
5435cd28c9
redirect to index if company was deleted 2022-05-04 12:39:56 +02:00
Matthias
00dffd953b
add messages if company was deleted 2022-05-04 12:39:12 +02:00
Matthias
1a3d482e42
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue2788 2022-05-04 12:33:21 +02:00
Oliver Walters
88dbd5aa74 PEP fixes 2022-05-04 18:46:07 +10:00
Oliver Walters
104f9d4a70 Remove outdated unit tests 2022-05-04 18:39:33 +10:00
Oliver Walters
17c84141b1 Javascript linting 2022-05-04 17:38:01 +10:00
Oliver Walters
7365f7b5cb Paint the icon red 2022-05-04 17:33:19 +10:00
Oliver Walters
1cefdfc2e4 PEP style fixes 2022-05-04 17:31:44 +10:00
Oliver Walters
adbcd68fe8 Refactor "uninstall stock item" form to use the API 2022-05-04 17:25:24 +10:00
Oliver Walters
5cf30a850d Prune a lot of dead code 2022-05-04 17:01:19 +10:00
Oliver Walters
bd3d6f47a1 Refactor CancelBuild form 2022-05-04 16:30:46 +10:00
Oliver Walters
768e23c7b8 Refactor BuildOrder API classes with a fancy mixin 2022-05-04 15:59:30 +10:00
Oliver Walters
a510ca89f7 Refactor CancelSalesOrder form 2022-05-04 15:55:21 +10:00
Oliver Walters
bf48e3204b Refactor PurchaseOrderIssue form 2022-05-04 15:45:13 +10:00
Oliver Walters
5afc3bfce2 Replace PurchaseOrderComplete form 2022-05-04 15:33:50 +10:00
Oliver Walters
e527ddcc86 Extract context information from the OPTIONS request (forms.js) 2022-05-04 15:31:33 +10:00
Oliver Walters
4e7d1d8e7f Bump API version 2022-05-04 15:16:50 +10:00
Oliver Walters
62cd0f39c7 Replace the existing CancelPurchaseOrderForm with an API driven form 2022-05-04 15:14:14 +10:00
Oliver Walters
e920fc31e7 Only include extra context information if requested 2022-05-04 15:07:22 +10:00
Oliver Walters
c7980a347e Adds ability to add custom serializer context information to the OPTIONS endpoint
- Will be useful for constructing prettier forms with information about the endpoint
2022-05-04 15:06:02 +10:00
Oliver
dbc0023c57
Update CONTRIBUTING.md
Update labels a bit
2022-05-04 12:10:00 +10:00
Oliver
1e4cf346e3
Merge pull request #2922 from matmair/doc-update
Clean up tags
2022-05-04 11:53:47 +10:00
Oliver
628c9edd09
Merge pull request #2929 from SchrodingersGat/spelling-fixes
Fix speling errors in translated strings
2022-05-04 09:56:47 +10:00
Oliver
b65a969433
Merge pull request #2928 from matmair/coverage-adaption
Increase coverage
2022-05-04 09:39:24 +10:00
Oliver Walters
75e24635b5 Fix speling errors in translated strings 2022-05-04 09:17:42 +10:00
Matthias
8038cff874
ignore for coverage 2022-05-04 00:43:49 +02:00
Matthias
6504ef535a
fix test - len needs to be recalculated 2022-05-03 23:23:36 +02:00
Matthias
e1b395c9be
test is_active 2022-05-03 23:19:51 +02:00
Matthias
cf0cbff69a
we are not covering packages right now 2022-05-03 23:19:01 +02:00
Matthias
5e277130fa
do not cover not implemented Mixin 2022-05-03 23:07:16 +02:00
Matthias
c5acfaf541
do not coverage catch for load 2022-05-03 23:06:57 +02:00
Matthias
e95c3e0948
do not cover default returns 2022-05-03 23:06:38 +02:00
Matthias
1522d330fa
add test for is_sample 2022-05-03 23:06:11 +02:00
Matthias
096c0c876c
PEP fix 2022-05-03 22:58:24 +02:00
Matthias
d49f74746a
test that MixinImplementationErrors raise 2022-05-03 22:56:28 +02:00
Matthias
204b4fd527
rename test 2022-05-03 22:55:39 +02:00
Matthias
626e3838ae
also cover errors 2022-05-03 22:15:24 +02:00
Matthias
a357c4ef88
also cover unregistering 2022-05-03 22:13:29 +02:00
Matthias
08e278232b
ignore db not ready in coverage 2022-05-03 22:12:34 +02:00
Matthias
b9cbc287f2
empty mixin schaffold - no tests 2022-05-03 22:10:26 +02:00
Matthias
0a012c3c58
only possible in test cases with plugin_tests off 2022-05-03 22:09:58 +02:00
Matthias
4663815cfa
this is just an extra safety check - should not trigger 2022-05-03 22:09:20 +02:00
Matthias
4e5015e742
do not cover unready db 2022-05-03 22:08:57 +02:00