2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00
Commit Graph

16292 Commits

Author SHA1 Message Date
27e31e5a75 Merge branch 'master' into matmair/issue6281 2025-01-02 09:25:47 +01:00
5eeb150828 New Crowdin translations by GitHub Action (#8786)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-01 10:41:30 +11:00
d7939efaa9 Fix package install in envs using python lower than 3.12 on debian like OSs (#8793)
* do not install with uv for now - fixes #8789
#8742 #8495 #8494

* Ensure errors are raised if install / update fails
2024-12-31 23:13:35 +11:00
02967a5b1d Reintroduce FAQ entry (#8812) 2024-12-31 20:36:27 +11:00
16e9729308 Allow barcode linking for stock location (#8802) 2024-12-31 15:48:41 +11:00
7a3709eb37 Fix FAQ typo (#8809) 2024-12-31 15:08:00 +11:00
74cd0b9aed Update .env file (#8799)
* Update .env file

- No functional changes
- Improved file comments

* Update .env

Improved comment
2024-12-31 14:44:34 +11:00
7419944301 Add FAQ on cookie setting change (#8805) 2024-12-31 14:08:23 +11:00
c917c64aa1 Add documentation on transferring media files (#8803) 2024-12-31 14:01:18 +11:00
5692f56630 Add docs for secret_key (#8801) 2024-12-31 13:45:52 +11:00
ecc1c937ed Caddyfile documentation (#8798)
* basic mixin file

* Add basic check for model type support

* Enhanced documentation for Caddyfile

* Additional documentation around proxy server

* Remove code from other PR
2024-12-31 13:35:51 +11:00
23e4f2f2a2 [Setup] Support X-Forwarded-Proto header (#8790)
* Remove use_x_forwarded_port setting

- As per the docs, this is ignored in favour of use_x_forwarded_host
- So, is not being used anyway

* Add note on x_forwarded_host option

* Add warning message if SITE_URL not provided

* Add support for SECURE_PROXY_SSL_HEADER

* Update configuration template file

* Update SITE_URL docs

* Remove line

* Re-add use_x_forwarded_port

* Docs tweak

* Improve wording

* Fix broken link
2024-12-31 12:33:17 +11:00
1c2ad94bb7 Remove old script for calculating translation stats (#8787)
* Remove old script for calculating translation stats

* Update tasks.py

* Adjust unit test call
2024-12-29 20:41:14 +11:00
b36027b5c1 Remove RELEASE.md file (#8788) 2024-12-29 20:14:42 +11:00
5e79c6906c [UI] Permission Enhancements (#8785)
* Update page permissions

- Add permission check to <InstanceDetail>
- HIde breadcrumbs and tree for part
- Hide breadcrumbs and tree for stock

* Additional permissions checks
2024-12-29 17:00:27 +11:00
cd0ee7dbab Url refactor (#8784)
* Cleanup config template

* Small refactor

- Fix for frontend_base_url setting

* Revert base url

* Fix reverse URL lookup
2024-12-29 14:54:02 +11:00
e5f6f3b741 add mfa reg endpoint (not fully implemented) 2024-12-29 01:02:30 +01:00
f49a687c54 remove unneeded change of confirm url 2024-12-29 01:02:06 +01:00
3f4239fc6c add dummy entry for missing frontend urls; see TODO@matmair 2024-12-29 01:01:29 +01:00
5b49667797 add mfa listing use build-in forms 2024-12-29 01:00:47 +01:00
964984ccac [Refactor] Custom states (#8438)
* Enhancements for "custom state" form

- More intuitive form actions

* Improve back-end validation

* Improve table rendering

* Fix lookup for useStatusCodes

* Fix status display for SockDetail page

* Fix SalesOrder status display

* Refactor get_custom_classes

- Add StatusCode.custom_values method

* Fix for status table filters

* Cleanup (and note to self)

* Include custom state values in specific API endpoints

* Add serializer class definition

* Use same serializer for AllStatusView

* Fix API to match existing frontend type StatusCodeListInterface

* Enable filtering by reference status type

* Add option to duplicate an existing custom state

* Improved validation for the InvenTreeCustomUserStateModel class

* Code cleanup

* Fix default value in StockOperationsRow

* Use custom status values in stock operations

* Allow custom values

* Fix migration

* Bump API version

* Fix filtering of stock items by "status"

* Enhance status filter for orders

* Fix status code rendering

* Build Order API filter

* Update playwright tests for build filters

* Additional playwright tests for stock table filters

* Add 'custom' attribute

* Fix unit tests

* Add custom state field validation

* Implement StatusCodeMixin for setting status code values

* Clear out 'custom key' if the base key does not match

* Updated playwright testing

* Remove timeout

* Refactor detail pages which display status

* Update old migrations - add field validator

* Remove dead code

* Simplify API query filtering

* Revert "Simplify API query filtering"

This reverts commit 06c858ae7c.

* Fix save method

* Unit test fixes

* Fix for ReturnOrderLineItem

* Reorganize code

* Adjust unit test
2024-12-29 08:45:23 +11:00
ef14310fc4 fix auth for email actions in MFA scenarios 2024-12-28 17:57:13 +01:00
c582ca0afd Add scan to action menu (#8781)
* small style fixes

* refactor: split scanning and dialog logic

* feat: Add modal and quick action to scan a barcode from anywhere
2024-12-29 01:12:42 +11:00
a584334a24 ignore the now often-used 410 error 2024-12-28 13:19:05 +01:00
4c99f3dcbf remove unused endpoints 2024-12-28 12:56:39 +01:00
8025260961 Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue6281 2024-12-28 12:54:55 +01:00
c003084690 fix: email endpoints (to be cleaned TODO@matmair) 2024-12-28 12:05:24 +01:00
3e73162368 Barcode scanning (#8732)
* Implement new "general purpose" barcode scan dialog

- Separated widgets for camera / keyboard / wedge scanner
- UI / UX improvements

* Handle scan results

* Fix missing imports

* Handle successful global scan

* Handle error when linking barcode

* Backend fix for InvenTreeInternalBarcodePlugin

* Error handling

* Working on scanner input

* Refactor scan page

* Callback from scanner input

* Refactoring <Scan> page

* Allow InvenTreeTable to be used with supplied data

* Refactor optionalparams

* Refactoring table of scan results

* Implement callbacks

* Navigate from barcode table

* Fix delete callback

* Refactor callbacks

* Refactor idAccessor

- Access as part of useTable hook
- No longer hard-coded to 'pk'

* prevent duplicate scans

* Fix for deleting items from table

* Cleanup

* Bump API version

* Adjust playwright tests

* Update playwright tests

* Update barcode screenshots

* Fix links

* Add quick links to barcode formats

* Updated screenshots

* Fix for BuildLineSubTable

* Specify idAccessor values

* Clear barcode input after timeout period

* Move items

* Fix for playwright test

* Remove debug print

* Additional error ignores

* Cleanup scanner input

- Simplify
- Prevent errant keycodes from closing the scanner dialog

* Playwright test adjustments
2024-12-28 20:38:53 +11:00
61e0fae7a3 Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue6281 2024-12-28 02:52:34 +01:00
0765b00520 New Crowdin translations by GitHub Action (#8752)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-27 19:43:52 +11:00
b0ce67fcd7 [Docs] Update FAQ (#8777)
* Update FAQ

* Add links to FAQ

* Extra info

* Extend documentation for debug options
2024-12-27 15:46:17 +11:00
189f2303b8 [PUI] Set password (#8770)
* Add <ChangePassword> page

* Rename Set-Password to ResetPassword

* Add unit testing

* Ensure user is properly logged into page

* Update playwright tests

* Small tweaks
2024-12-27 11:01:48 +11:00
5499884553 Bump jinja2 from 3.1.4 to 3.1.5 in /docs (#8771)
* Bump jinja2 from 3.1.4 to 3.1.5 in /docs

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.4...3.1.5)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix req

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2024-12-27 08:14:46 +11:00
04d7a96dde split up python updates and assign to @matmair for manual fixes where necessary (#8772) 2024-12-27 08:14:32 +11:00
01d416dad8 Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue6281 2024-12-26 18:13:05 +01:00
2a77e0b0f9 remove jwt mention 2024-12-26 18:13:01 +01:00
7bfdc86799 stop failure message from appearing when in MFA flow 2024-12-26 18:10:52 +01:00
d701182d52 re-implement logoff 2024-12-26 18:10:01 +01:00
e3c8b89b67 Re-implement auth flow using new APIs; adds MFA to PUI 2024-12-26 17:42:36 +01:00
7334dc446a disable tests temporarly 2024-12-26 14:58:19 +01:00
1d22b89ed6 DB CI Checks (#8773)
* Update test databases in CI

* Add new target
2024-12-26 23:43:49 +11:00
da21e39e84 Turn off debug by default (#8743)
* turn off debug by default

* fix log level / debug settings for workflows

* fix typo
2024-12-26 20:16:53 +11:00
d4ee8c53b2 Fix default value for SESSION_COOKIE_SECURE (#8767)
- Default value was previously 'True'
- Documentation indicated that it was 'False'
- Value in config_template.yaml was 'False' (but commented out)
2024-12-26 11:25:58 +11:00
ae7f4e33d5 Zero stock fix (#8766)
* Change backend validation

- Allow stock adjustments with zero quantity

* Frontend changes
2024-12-26 10:42:07 +11:00
e9cd910c51 fix migration check 2024-12-25 13:38:15 +01:00
97522d971f Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue6281 2024-12-25 01:25:23 +01:00
c79fc281fd Fix typo (#8757)
- registraton -> registration
2024-12-25 07:38:39 +11:00
fe68dc7318 Refactor fix formatting exclusion (#8746)
* fix ruff exclusions

* aut-format

* Fix docstrings

* more fixes

* ignore error(s)

* fix imports

* adjust descriptions for build
2024-12-25 07:16:24 +11:00
1fec41cb71 Update qc_checks.yaml (#8759) 2024-12-24 21:42:39 +11:00
02e43061b2 Bump jinja2 from 3.1.4 to 3.1.5 in /src/backend (#8751)
* Bump jinja2 from 3.1.4 to 3.1.5 in /src/backend

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.4...3.1.5)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix req

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2024-12-24 11:54:10 +11:00