2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-06 12:01:41 +00:00
Commit Graph

1099 Commits

Author SHA1 Message Date
Oliver Walters
06c858ae7c Simplify API query filtering 2024-12-28 16:52:47 +11:00
Oliver Walters
2ce17f6d44 Remove dead code 2024-12-28 16:51:46 +11:00
Oliver Walters
08a15719a3 Update old migrations - add field validator 2024-12-28 16:49:57 +11:00
Oliver Walters
a731afc4fe Refactor detail pages which display status 2024-12-28 16:39:19 +11:00
Oliver Walters
60a777f7ac Remove timeout 2024-12-28 16:33:27 +11:00
Oliver Walters
1568dc29f7 Updated playwright testing 2024-12-28 16:33:16 +11:00
Oliver Walters
26f1792940 Clear out 'custom key' if the base key does not match 2024-12-28 04:14:57 +00:00
Oliver Walters
76210525e0 Implement StatusCodeMixin for setting status code values 2024-12-28 04:03:21 +00:00
Oliver Walters
ad79c79983 Add custom state field validation 2024-12-28 03:41:38 +00:00
Oliver Walters
5be8d7ce70 Fix unit tests 2024-12-28 01:56:50 +00:00
Oliver Walters
cf9d71f86c Add 'custom' attribute 2024-12-28 01:55:54 +00:00
Oliver Walters
b260128cd5 Additional playwright tests for stock table filters 2024-12-28 12:33:10 +11:00
Oliver Walters
9928939ce8 Update playwright tests for build filters 2024-12-28 12:12:32 +11:00
Oliver Walters
516a6d9823 Build Order API filter 2024-12-27 23:26:05 +00:00
Oliver Walters
876e90a6c0 Fix status code rendering 2024-12-27 23:23:14 +00:00
Oliver Walters
d389aa2f7a Enhance status filter for orders 2024-12-27 23:18:40 +00:00
Oliver Walters
31057ee22b Fix filtering of stock items by "status" 2024-12-27 23:15:23 +00:00
Oliver Walters
886bc176c4 Bump API version 2024-12-27 09:24:41 +00:00
Oliver Walters
3cc280d70f Fix migration 2024-12-27 09:15:19 +00:00
Oliver Walters
0663b7a659 Allow custom values 2024-12-27 08:43:19 +00:00
Oliver Walters
b4955a93c7 Use custom status values in stock operations 2024-12-27 08:40:59 +00:00
Oliver Walters
97ff73b965 Fix default value in StockOperationsRow 2024-12-27 08:40:29 +00:00
Oliver Walters
1d690874ed Merge remote-tracking branch 'origin/master' into custom-states 2024-12-27 08:24:28 +00:00
Oliver
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
Matthias Mair
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
Oliver
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
Oliver
ae7f4e33d5 Zero stock fix (#8766)
* Change backend validation

- Allow stock adjustments with zero quantity

* Frontend changes
2024-12-26 10:42:07 +11:00
Oliver
c79fc281fd Fix typo (#8757)
- registraton -> registration
2024-12-25 07:38:39 +11:00
Matthias Mair
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
dependabot[bot]
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
Matthias Mair
7f1cc4658b Fix REST registration endpoint (#8738)
* Re-add html account base
Fixes #8690

* fix base template

* override dj-rest-auth pattern to fix fixed token model reference

* pin req

* fix urls.py

* move definition out to separate file

* fix possible issues where email is not enabled but UI shows that registration is enabled

* fix import order

* fix token recovery

* make sure registration redirects

* fix name change

* fix import name

* adjust description

* cleanup

* bum api version

* add test for registration

* add test for registration requirements
2024-12-24 11:53:25 +11:00
Oliver
8fcebefa0b Handle error when loading icon pack (#8753)
* Handle error when loading icon pack

* Update
2024-12-24 10:18:00 +11:00
Matthias Mair
ec6280dacd MFA add better logging (#8745)
* add better logging

* use structlog
2024-12-24 07:22:28 +11:00
Matthias Mair
728e0894aa Factor out helper (#8744)
* facour out helper

* fix import path
2024-12-24 07:20:27 +11:00
Oliver
71eb2814d4 Remove django-import-export (#8685)
* Remove django-import-export requirement

* Update settings.py

* Clean up admin files

* Remove much of the old BOM exporter framework

* Add note for future self

* Remove dead unit test files

* Remove defunct AjaxView classes

* Remove InvenTreeRoleMixin

* Update docs for data import

* Export docs
2024-12-24 07:19:36 +11:00
Oliver
f31ba657cc API error handling (#8739)
* API error handling

- Add error handlers to various API calls

* Fix return type
2024-12-24 07:18:56 +11:00
github-actions[bot]
933330fa51 New Crowdin translations by GitHub Action (#8683)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-23 10:36:39 +11:00
Matthias Mair
aa905166c5 Switch to zoneinfo from pytz (#7645)
* switch to zoneinfo from pytz

* fix lookup

* fix assert

* fix another round of assertions
2024-12-23 08:46:31 +11:00
Joe Rogers
0bcad6b340 Add separate dialog for 'Ship Order' button (#8734) 2024-12-22 16:08:45 +11:00
Oliver
d8207c88f0 Remove unused setting (#8731) 2024-12-21 08:33:31 +11:00
Oliver
aabcf52cd2 Forms fixes (#8722)
* Refactor form fields

- Allow error message to be passed through via field definition
- Return error information to onFormError

* Fix debounce issue for text fields

* Fix for useForm hook

* Badge fix

- Fix badge rendering for SalesOrderShipment

* Cleanup unit test
2024-12-20 14:53:39 +11:00
Oliver
68ac4118e9 [UI] Link fix (#8726)
- Fixes anchor issues in stock tracking table
2024-12-20 12:21:21 +11:00
Oliver
130bc84b44 Badge fix (#8725)
- Fix badge rendering for SalesOrderShipment
2024-12-20 12:13:00 +11:00
Matthias Mair
aad5575cd2 Fix MFA auth flow (#8720)
* Re-add html account base
Fixes #8690

* fix base template
2024-12-20 07:21:22 +11:00
Oliver
53792693f5 Allow backup_value to be specified to the 'getkey' report helper (#8719) 2024-12-19 09:24:01 +11:00
Matthias Mair
17fd7f32a4 consider INVENTREE_RESTRICT_ABOUT setting (#8717) 2024-12-19 08:37:39 +11:00
Oliver
6634bc54bd Remove javascript rendering (#8713) 2024-12-19 07:34:01 +11:00
Oliver
88bfb23362 Cleanup tags (#8712)
* Remove part_allocation_count tag

* Remove more dead tags
2024-12-19 07:33:48 +11:00
Oliver
e37e72357a Cleanup old settings (#8709)
* Use LABEL_ENABLE and REPORT_ENABLE settings in PUI

* Cleanup base.html

- Should reduce db hits slightly

* Remove defunct homepage settings

* Cleanup old settings

* Adjust unit test
2024-12-19 07:31:59 +11:00
Matthias Mair
1c9f56011c Various SAST fixes (#8718)
* fix type

* fix typing

* fix python:S5713

* fix python:S1066

* fix python:S3516

* fix python:S5727

* fix python:S5886
2024-12-19 07:31:33 +11:00