Commit Graph

12977 Commits

Author SHA1 Message Date
Matthias Mair
e83f9ead0a
update tags to new names 2022-05-15 15:58:20 +02:00
Matthias Mair
55b909a1de
fix new lines 2022-05-15 15:56:08 +02:00
Oliver
c2dd8afea6
Merge pull request #2981 from SchrodingersGat/model-setting-reference
Add settings which reference *model instances* allowing better lookup of models
2022-05-12 17:59:56 +10:00
Oliver
c4fa72e54c PEP style fixes 2022-05-12 17:30:52 +10:00
Oliver
a81ea01e8e Model introspection
- Find the class registered to the model (or log an error)
- Pass the api_url through to the frontend
2022-05-12 17:28:55 +10:00
Oliver
e112d555d4 Simplify the various settings objects, to improve retrieval of 'parameters' from the base class
- Remove the GenericReferencedSettingsClass mixin
- Each subclass defines a very simple get_kwargs() method
- Now, at object level *and* class level we can perform lookup of settings and actually get proper data back
- Adds "model" option to setting (precursor of things to come)
2022-05-12 16:45:27 +10:00
Oliver
a68db90240
Merge pull request #2978 from SchrodingersGat/convert-to-variant-fix
Convert to variant fix
2022-05-12 15:42:22 +10:00
Oliver
59cf9825fe Update comment 2022-05-12 15:16:26 +10:00
Oliver
47ddafb728 Fix edge case when converting stock item to variant
- If the stock item had been created as part of a Build Order, and subsequently "converted" to a variant part, the conversion operation will fail
- Patch allows the build reference to be linked based on either the base part, or any conversion options
2022-05-12 15:15:51 +10:00
Oliver
56f36d4b4b
Merge pull request #2977 from SchrodingersGat/table-downloader
Adding "download" buttons for more tables
2022-05-12 13:27:11 +10:00
Oliver
8edc0cc893 PEP fixes 2022-05-12 12:47:25 +10:00
Oliver
a83c3289b7 Merge remote-tracking branch 'inventree/master' into table-downloader 2022-05-12 12:44:26 +10:00
Oliver
c89547f58c Adds exporter and download functionality for BuildOrder table 2022-05-12 12:44:15 +10:00
Oliver
e3508f99d9
Merge pull request #2976 from SchrodingersGat/auth-middleware-fix
Do not redirect requests for media / static / api / js files
2022-05-12 12:05:02 +10:00
Oliver
d0ddb47b1f Adds exporter and download button for sales orders 2022-05-12 11:44:05 +10:00
Oliver
1b1f7634b7 Adds exporter and download button for PurchaseOrder table 2022-05-12 11:41:25 +10:00
Oliver
465e69c254 Refactor exporters for:
- Part
- PurchaseOrderLineItem
2022-05-12 11:33:17 +10:00
Oliver
a77d4b97b4 Refactor stock_list endpoint to use the new mixin 2022-05-12 11:29:33 +10:00
Oliver
650d082eca Bump API version 2022-05-12 11:23:58 +10:00
Oliver
774bfdb9e7 Adds APIDownloadMixin class to implement common behaviour 2022-05-12 11:22:34 +10:00
Oliver
21d2b54afe Fix CI step 2022-05-12 11:00:43 +10:00
Oliver
aa9ee15fb4 Fix CI pipeline for python checks
- Recently updated the python binding test framework
2022-05-12 10:52:53 +10:00
Oliver
151f2cae6f Do not redirect requests for media / static / api / js files
- For these paths, just return a 401
- This is necessary to stop unauthorized calls to the API or to request media files from redirecting to the login page
2022-05-12 10:45:30 +10:00
Oliver
2652c75bda
Merge pull request #2972 from SchrodingersGat/user-create-auto-fix
Do not try to create a new admin user if one already exists
2022-05-11 23:29:16 +10:00
Oliver
362bc55479
Merge pull request #2966 from matmair/add-report-check
Add code128 template
2022-05-11 21:50:08 +10:00
Oliver Walters
f00c3639c0 PEP fxi 2022-05-11 21:04:36 +10:00
Oliver Walters
e1609c50db Typo fix 2022-05-11 20:57:42 +10:00
Oliver Walters
d7eab8e1a3 Improve log output 2022-05-11 20:48:26 +10:00
Oliver Walters
20fa72e36f Do not try to create a new admin user if one already exists with that name 2022-05-11 20:46:44 +10:00
Matthias
3c9e4e7eab
make imports easier 2022-05-11 12:17:46 +02:00
Matthias
f0d2730ae6
rename file to fit structure 2022-05-11 12:16:06 +02:00
Oliver
f4e3abd44e
Merge pull request #2968 from SchrodingersGat/ci-simplification
postgresql and mysql checks only run on push
2022-05-11 14:41:57 +10:00
Oliver
a6815c8334 if != on 2022-05-11 14:16:39 +10:00
Oliver
37ce9f351d postgresql and mysql checks only run on push
- sqlite and coverage still runs on pull_request
- should speed up CI checks / reduce redundant CI server load
2022-05-11 14:15:44 +10:00
Oliver
96ee235563
L10 crowdin (#2967)
* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-05-11 14:08:06 +10:00
Matthias
462713ca61
pep fix 2022-05-11 04:22:42 +02:00
Matthias
b7087b83b5
Merge branch 'master' of https://github.com/inventree/InvenTree into add-report-check 2022-05-11 04:19:18 +02:00
Matthias
fa8a726399
activate barcode tests 2022-05-11 04:08:26 +02:00
Matthias
9a69f125a9
move barcodes to plugin 2022-05-11 04:08:13 +02:00
Matthias
352e718e68
remove digikey barcode plugin 2022-05-11 04:03:30 +02:00
Matthias
f620491517
add test for rendering label 2022-05-11 03:15:20 +02:00
Matthias
a65d747501
add additional template 2022-05-11 03:05:40 +02:00
Matthias
67966eba13
Add code128 template 2022-05-10 23:56:02 +02:00
Oliver
6c52d0b8dc
Merge pull request #2965 from SchrodingersGat/docker-git
Mark inventree home directory as safe for git.
2022-05-10 23:35:11 +10:00
Oliver Walters
bb5d6815df Mark inventree home directory as safe for git.
Ref: https://github.blog/2022-04-12-git-security-vulnerability-announced/
2022-05-10 23:24:32 +10:00
Oliver
28123ef9bc
Merge pull request #2964 from SchrodingersGat/barcode-validation-fix
Fix error response in barcode API
2022-05-10 23:10:29 +10:00
Oliver Walters
9658f47e93 PEP fix 2022-05-10 22:32:44 +10:00
Oliver Walters
a6703df3c7 More fixes and unit tests 2022-05-10 22:10:56 +10:00
Oliver Walters
235954af18 Add unit test for invalid item 2022-05-10 22:08:23 +10:00
Oliver Walters
6766343f8f Update API version 2022-05-10 22:05:59 +10:00