2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 12:06:44 +00:00

13661 Commits

Author SHA1 Message Date
Oliver
ca1fbf9ff0
Prevent name check on null attachment file (#3819)
(cherry picked from commit c4ed1e23a01f278d696c2853337bdde0a682c6c5)
(cherry picked from commit 8c2d89de2090dc67c1bc1f5f0b171c7be56ee6e0)
0.8.4
2022-10-20 21:53:25 +11:00
Oliver
531c39725c
Fix for allowing plugins without explicit metadata (#3769) 2022-10-12 00:16:12 +11:00
Oliver
cfabf67b67
Settings panel bug fix (#3761) 2022-10-09 09:08:00 +11:00
Oliver
0dc6f79647
Allow auto-loading of plugins in certain conditions (#3763)
Ref: 52af196694
(cherry picked from commit 27937eeddd8de97f526c7af65af34e0798ade27b)
2022-10-09 09:07:11 +11:00
Oliver
5c1b4a5ab1
Bug fix for stock adjustment actions (#3735) (#3736)
* Check for empty strings as well as null values

* JS linting

(cherry picked from commit 1f2859d8c92869e4f2836048ff72cecdde95f45e)
2022-09-30 16:00:03 +10:00
Oliver
39f7fbb332
Add typecasting to certain settings (#3726) (#3728)
* [FR] Add typecasting to certain settings
Fixes #3725

Add typecasting

* Add types to:
- INVENTREE_CACHE_PORT
- INVENTREE_EMAIL_PORT
- INVENTREE_LOGIN_CONFIRM_DAYS
- INVENTREE_LOGIN_ATTEMPTS

* cast DB_PORT to int

* Add logging statements

(cherry picked from commit dce10072efe14c6941377fc76ffad5ac434541d7)

Co-authored-by: Matthias Mair <code@mjmair.com>
2022-09-28 09:39:07 +10:00
Oliver
30d5f93821
Bump version number to 0.8.4 (#3713) 2022-09-24 13:01:38 +10:00
Matthias Mair
f9d2b149c6 Add sanitation for SVG file uploads 0.8.3 2022-09-23 17:05:02 +10:00
Oliver
c4f1d8b345
Bug fix for path string generation (#3696) 2022-09-20 19:39:39 +10:00
Oliver
c4c3cdcb31
Adds callback for clipboard button (#3678) (#3679)
(cherry picked from commit 7645492cc2e457bc118235d411740478a60fe70f)
2022-09-14 17:50:15 +10:00
Oliver
66d6896925
Fix purchase order report template (#3674) (#3677)
(cherry picked from commit 6e36ae5f744cb43efa67bd2c2140edad2b435b14)
2022-09-14 16:48:05 +10:00
Oliver
6c8226cee6
Fix report permissions (#3642) (#3643)
- Add report model permissions to correct role groups

(cherry picked from commit d7a8d6dd5e586a290beaa8deb31bdfdaa9d2871a)
2022-09-05 14:55:32 +10:00
Oliver
14143c1681
Fix sales order table refresh (#3627) (#3628)
- Refreshing the SalesOrder table would actually reload the PurchaseOrder table

(cherry picked from commit 23edd794312b5eea2e00878d2216150048747a4e)
2022-09-01 15:04:26 +10:00
Oliver
c7955c267c
Bump version number to 0.8.3 (#3614) 2022-08-28 08:55:44 +10:00
Oliver
62f44d06bf
Add missing 'remove stock' action (#3610) (#3611)
* Add missing 'remove stock' action

* Add some unit tests for the stock item view

(cherry picked from commit 993f36c98fc83e542866b13b0c9c003a81008d97)
0.8.2
2022-08-25 21:31:23 +10:00
Oliver
ee5238b13e
StockItem page template fix (#3601) (#3604)
- Allow damaged / quarantined items to be adjusted
- Fix template rendering logic

(cherry picked from commit 6adfc91c5c774ca2285eed83f86c7c19df5130f6)
2022-08-24 17:17:46 +10:00
Oliver
2db9b28063
Bug fix for loading asset files in reports (#3596) (#3598)
- Pathlib does not play well with SafeString
- Enforce string type' when loading an asset file
- Add unit tests

(cherry picked from commit 12509203d6c2e7b72416a1eb257036b3df1fb7ae)
2022-08-24 12:01:37 +10:00
Oliver
30beb12c81
Fix dimensions for label templates (#3578) (#3580)
- Disable localization in certain areas
- Different localization settings could mess with label generation

(cherry picked from commit c8de2efd9ddc30889e83be44f91f116c3b2ac6d6)
2022-08-19 12:35:24 +10:00
Oliver
644bcb263f
fix: invalid chas in cache key (#3574) (#3577)
(cherry picked from commit efafa3960bac1b70672b1f4791df6e99e5995012)

Co-authored-by: wolflu05 <76838159+wolflu05@users.noreply.github.com>
2022-08-19 11:35:49 +10:00
Oliver
2ae1d1c663
fix typo in variable name (#3541) (#3543)
this fixes broken e-mail from configuration.

(cherry picked from commit d102a87effe0fa010251b440f68b2ced16bb4ffb)

Co-authored-by: Jacob Siverskog <jacob@teenage.engineering>
2022-08-16 13:08:33 +10:00
Oliver
951225b420
Fix bug in exporting records (#3545) (#3552)
Introduced in #3392

(cherry picked from commit 858d48afe7e68f1da28172dd9e08a87bdba1c34c)

Co-authored-by: miggland <miggland@users.noreply.github.com>
2022-08-16 13:08:11 +10:00
Oliver
836ec3289d
Fix weasyprint version (#3539) (#3540)
* Pin weasyprint version

- Revert to 54.3
- Fixes https://github.com/inventree/InvenTree/issues/3528

* Simplify label printing for multiple pages

* Simplify PDF generation for multiple report outputs

* Add content wrapper div for base label template

- Allows more extensibility

(cherry picked from commit 87e7112326357ea8dbe3d31eb461d0ba1ea9f991)
2022-08-15 12:22:10 +10:00
Oliver
3482b81e8a
Bump version to 0.8.2 (#3504) 2022-08-09 13:38:33 +10:00
Oliver
fb97385b23
load admin first (#3484) (#3492)
(cherry picked from commit 9182f62bc48c2831230f3f9d48bf54e9730cbe97)
0.8.1
2022-08-08 07:47:27 +10:00
Oliver
276ad572c5
Url field fix (#3488) (#3491)
* Updates for automated metadata extraction

* Update link field for StockItem model

- Increase max_length to 200 characters
- Custom migration
- Updates for InvenTreeUrlField model

* Adding unit tests

* Bug fix for metadata.py

(cherry picked from commit 63d221854bddca881330e73299e47397723cf03a)
2022-08-08 07:47:17 +10:00
Oliver
1e7f4dcb4b
Improved loading for custom logo (#3489) (#3490)
- First check the 'static' directory
- Second check the 'media' directory (backwards compatibility)
- Third use the default logo

(cherry picked from commit 83b471b4f7ab8a92c5f341c32bf0482bc50c51ca)
2022-08-07 23:16:57 +10:00
Oliver
72bec42c0f
Depenency updates (#3472) (#3481)
* update requirements

* automate everything

(cherry picked from commit 12a321ed4f3d5d2bcff3aceb93415c1f3deb8609)

Co-authored-by: Matthias Mair <code@mjmair.com>
2022-08-06 10:02:44 +10:00
Oliver
8e5202b39a
Improvements to version check CI script (#3455) (#3457)
* Improvements to version check CI script

* Fix typo

* Allow duplicate version tags for 'stable' branch

(cherry picked from commit 08d93e0727e126d765b798f0979e62cbce8c71e3)
2022-08-02 13:34:08 +10:00
Oliver
63664714ca
Return early if themes dir does not exist (#3453)
* Return early if themes dir does not exist

(cherry picked from commit 3e1cdcdb079fd2614d4a6478dc0addea94537d6f)

* Bump version number to 0.8.1
2022-08-02 10:38:36 +10:00
Oliver
6118d1319c
Check that notification target is not null (#3449)
* Check that target is not null

* Prevent display of "negative" notification coutner

* spelling fix
0.8.0
2022-08-01 14:25:24 +10:00
Oliver
ee18ce9a7a
New Crowdin updates (#3447)
* 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

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-08-01 13:44:19 +10:00
Oliver
175d9555b0
Tree query improvements (#3443)
* Allow part category table to be ordered by part count

* Add queryset annotation for part-category part-count

- Uses subquery to annotate the part-count for sub-categories
- Huge reduction in number of queries

* Update 'pathstring' property of PartCategory and StockLocation

- No longer a dynamically calculated value
- Constructed when the model is saved, and then written to the database
- Limited to 250 characters

* Data migration to re-construct pathstring for PartCategory objects

* Fix for tree model save() method

* Add unit tests for pathstring construction

* Data migration for StockLocation pathstring values

* Update part API

- Add new annotation to PartLocationDetail view

* Update API version

* Apply similar annotation to StockLocation API endpoints

* Extra tests for PartCategory API

* Unit test fixes

* Allow PartCategory and StockLocation lists to be sorted by 'pathstring'

* Further unit test fixes
2022-08-01 13:43:27 +10:00
Oliver
1306db74b2
Update version_check.py CI scrips (#3448)
- Allow 'duplicate' version numbers when running on a tagged release
- In this situation, we have just tagged the particular release, and so the tag version *does* exist
- Note that f we are running on a 'tag' (release) then by definition we cannot have a duplicate tag.
2022-08-01 13:31:26 +10:00
Oliver
099489ce79
0.8.0 release version (#3432) 2022-07-31 23:37:37 +10:00
Oliver
e9b0f02ecd
Update demo data hook to copy media files (#3441)
* Simplify settings.py / config.py

- get_setting function has been streamlined
- move some functions into config.py

* Spelling fix: IGNORRED is IGNORED

* Ensure yaml is installed as part of docker image

- invoke path is still mucking us around

* Fix broken migration

* Copy media files from demo dataset when installing test data

* Cleanup settings.py

* Fix for configuration file traversal

* Line fix

* Update quickstart guide for docker

* Allow plugin file and plugin dir to be specified in configuration file

* Cleanup config template file

* Allow secret_key information to be provided in configuration file

* Adjust root paths for CI tests

* resolve paths

* Revert paths for CI step

* remove dead code

* Revert configuration variables to old names

- Prevent breaking changes

* Simplify secret key generation

* Fix default timeout for background worker process

* Revert change for customization options
2022-07-31 23:16:58 +10:00
Oliver
d4eae9da11
New Crowdin updates (#3440)
* 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

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-07-31 11:23:14 +10:00
Matthias Mair
ae07247a82
Add links to all notifications that do not have a link (#3431)
* refactor link

* [FR] Error notifications should provide link to the error
Fixes #3367
2022-07-31 11:23:07 +10:00
Matthias Mair
742e579fa7
[FR] Don't log 404 errors (#3436)
* [FR] Don't log 404 errors
Fixes #3418

* move ignored errors to settings

* Add unittest

* Add test for not ignored errors

* Add check for manual logging
2022-07-31 10:10:49 +10:00
Matthias Mair
486a956f42
Switch to Enum (#3437) 2022-07-31 09:21:09 +10:00
Matthias Mair
2ad0fa11f8
add no cov to settings (#3439) 2022-07-31 09:19:48 +10:00
Oliver
703731ec4d
Fix for docker-compose v1 (#3434)
v1 does not support the name attribute
2022-07-30 11:43:15 +10:00
Oliver
3fc9a36d4b
Simplification of development docker-compose file (#3429)
* Simplification of development docker-compose file

- Rename .env file
- Remove requirement for variable interpolation within the docker-compose file itself

* Add debug flag to CI test

* Additional quick-start docs (for docker)

* docker-compose update

- Introspection did not work quite as expected
- Set project name inside docker-compose file

* Fixes for "setup_test" task

- Check if directory exists before first deleting it
- Parameterize the "path" variable
- Add option to ignore update step

* Add demo data dir to .gitignore

* Remove debug call

* Update CONTRIBUTING.md
2022-07-30 10:34:16 +10:00
Matthias Mair
9ccf211650
fix gtipod.io (#3415) 2022-07-29 18:42:38 +10:00
Oliver
5b650a5c55
New Crowdin updates (#3427)
* 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

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-07-29 15:02:06 +10:00
Matthias Mair
e461a2c1ef
Development improvements (#3413)
* rename .env to make sure it is not loaded by default

* make sure migrations are run before import

* Add more messaget to setup_test

* add comments to setup-dev

* Add flag to setup-dev for setting up test data

* add flag to setup-test to also run development setup

* extend contributing with the flags

* change flag to tests

* Add option helptexts

* A nicer starter

* add 3 liner

* Revert "rename .env to make sure it is not loaded by default"

This reverts commit 95fa0bbc530ca155be4ca29e967a9ff1f00d9cc3.
2022-07-29 14:58:54 +10:00
Oliver
4d5e267753
Fit for unit test (#3426)
* Fit for unit test

- Write known value to setting before perfoming read test

(cherry picked from commit 7042d8b9badb7bf50f6f6566c3d4171d68d43f0c)

* Allow longer timeout for image download tests

(cherry picked from commit e1ce13043fb9370e2b5e81342f039703aaa12444)
2022-07-28 13:52:16 +10:00
miggland
2b1658e513
Fix version-copy button according to #3373 (#3425) 2022-07-28 08:06:32 +10:00
Oliver
8f9981a3b6
Convert PosixPath to string for plugin loading (#3423) 2022-07-27 21:59:23 +10:00
Oliver
9110035370
Fix "part" column sorting in BOM table (#3422) 2022-07-27 19:58:48 +10:00
Oliver
3d67cabb1a
New Crowdin updates (#3405)
* 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

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-07-27 19:14:06 +10:00