2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00
Commit Graph

14895 Commits

Author SHA1 Message Date
0782d86d12 Fix for build.js (#6437) (#6438)
- Catch potential empty build_detail attribute

(cherry picked from commit df5a3013e6)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-02-07 10:37:25 +11:00
e5e18f3711 Fix display of allocated stock items in build table (#6427) (#6429)
- Include stock_detail in BuildLine serializer by default

(cherry picked from commit cd803640a9)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-02-07 00:07:53 +11:00
c326c7845a Update version.py (#6426)
Bump version number to 0.13.6
2024-02-06 21:33:45 +11:00
0804ecf538 Handle null case for delivery_methods (#6411) (#6413)
(cherry picked from commit fc86064bd1)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
0.13.5
2024-02-05 21:29:24 +11:00
39176d9a19 Use registry.get_plugin() (#6408) (#6409)
- Instead of registry.plugins.get()
- get_plugin checks registry hash
- performs registry reload if necessary

(cherry picked from commit e9c6dd8273)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-02-05 17:18:13 +11:00
75f507d4c7 BuildOrder: Fix bug where test templates are requested for a non-trackable output (#6387) (#6388)
(cherry picked from commit c9c93bce39)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-02-02 16:19:56 +11:00
c826b8231f Backport: Fix urls loading for plugin testing (#6383) (#6384) 2024-02-02 07:00:14 +11:00
a05e07b2dd Disable cache for report helpers (#6370) (#6371)
- Can lead to unintended consequences where REPORT_DEBUG_MODE toggles

(cherry picked from commit 2557383892)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-31 15:58:45 +11:00
fc4e20f1b7 Enable existing_image on PATCH requests (#6126) (#6369)
* Enable existing_image on PATCH requests

* Fix CI problems

* Solution

* Change check to whitelist and add unit tests

(cherry picked from commit 9db3efa085)

Co-authored-by: Lavissa <lavissawow@gmail.com>
2024-01-31 08:20:50 +11:00
9494a8ad43 Bug fix for javascript rendering (#6362) (#6363)
* Check template name when rendering also

* Update i18n.py

Enforce stringiness

(cherry picked from commit b42f3de357)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-30 11:03:35 +11:00
c12e6dbf42 Backport of #6335 (#6338)
- Ref: https://github.com/inventree/InvenTree/pull/6335
- Fixes bug with regard to splitting stock items
2024-01-25 08:33:23 +11:00
3daf85c3d0 Update version.py (#6329)
Bump version number to 0.13.5
2024-01-24 15:51:51 +11:00
8fe5dcfafb fix(docker): SELinux volume labels (#6330) (#6331)
When mounting volumes into containers with SELinux
enabled on the host the z option must be specified

(cherry picked from commit 0a94758d63)

Co-authored-by: Philipp Fruck <dev@p-fruck.de>
2024-01-24 09:11:12 +11:00
6a66be36f2 Specify empty OIDC prefix (#6324) (#6327)
* Specify empty OIDC prefix

Ref: https://github.com/inventree/InvenTree/discussions/6273

* Add extra comment around version information

* Update InvenTree/InvenTree/settings.py

Co-authored-by: Philipp Fruck <dev@p-fruck.de>

---------

Co-authored-by: Philipp Fruck <dev@p-fruck.de>
(cherry picked from commit d8f69c0609)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
0.13.4
2024-01-24 06:32:55 +11:00
12cd6a915b Update version.py (#6313)
Bump version number to 0.13.4
2024-01-22 17:07:05 +11:00
e81349e70e SSO Error Improvememts (#6246) (#6304)
* Improve exception handling

* Extract extra information from SSO auth failure

* Revert order of ignore check
0.13.3
2024-01-22 00:41:00 +11:00
2c6bc8852b django-allauth==0.6.1 (#6301) (#6302)
(cherry picked from commit c5d0902379)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-21 10:30:07 +11:00
774d0f50fd JS translation fix (#6288) (#6289)
* Implement {% jstrans %} template

- Forces string escaping in translated text
- Required for js written in templates

* Fix part_base.html

* Update .html files

- Change any templated javascript code to use {% jstrans %}

* Update .js files

- Explicitly use {% jstrans %}

* Update CI checks
2024-01-19 13:37:48 +11:00
3a37947dbb Import Fix (#6274) (#6277)
* Fix check for static dir

* Fix export price field for SalesOrderLineItem

* Automatically detect which non-nullable fields need conversion

* Fix bug during import

- fulfilled_quantity and allocated_quantity must have a pk
- Cannot work before imported!
2024-01-18 22:37:08 +11:00
e0b2895ef5 Do not create owners when importing data (#6271) (#6272)
- Prevent issues due to duplicate Owner objects

(cherry picked from commit c3a5d777b1)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-18 10:44:11 +11:00
9aa859a428 Update version.py (#6266)
Bump version number to 0.13.3
2024-01-17 23:34:17 +11:00
ddd65cff5e Fix news feed task timeout (#6250) (#6265)
Co-authored-by: Lavissa <lavissawow@gmail.com>
0.13.2
2024-01-17 21:07:50 +11:00
1abdb1fd46 Backport changes to tasks.py (#6256)
- Fixes ongoing issues with import/export
2024-01-16 21:47:41 +11:00
2b0ef2bc61 Fix supplier barcode order numbers (#6158) (#6239)
* Add tme barcode CPO field

* Fix LCSC order number field

* Fix mouser order number field

* Fix get_purchase_orders logic

* Refine get_purchase_orders logic

* Slightly refactor get_purchase_orders logic
2024-01-14 13:05:14 +11:00
f259fa6792 Add tests for get_purchase_orders logic (#6236) (#6238)
(cherry picked from commit d2d59e0709)

Co-authored-by: Bobbe <34186858+30350n@users.noreply.github.com>
2024-01-14 12:49:31 +11:00
55f09d8723 Fix reassigning supplier barcodes (#6162) (#6237)
* Ignore 3rd party barcode plugins when assigning barcode

* Use single quotes
2024-01-14 12:45:31 +11:00
4973d9c726 Fix rendering of supplier pack quantity (#6228)
Backport of https://github.com/inventree/InvenTree/pull/6226
2024-01-13 20:01:19 +11:00
e22779872e Update version.py (#6220)
Bump version number to 0.13.2
2024-01-13 00:30:41 +11:00
ec67f10fc8 Fix build API URL (#6219)
- Backport of https://github.com/inventree/InvenTree/pull/6218
0.13.1
2024-01-13 00:01:02 +11:00
a6693d3bf8 fixed depreceated is_ajax (#6210) (#6216)
* fixed depreceated is_ajax (#6210)

* File cleanup

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2024-01-12 22:23:23 +11:00
421081b8f6 Specify ForeignKey widget for importing destination field (#6205) (#6206)
- Fixes https://github.com/inventree/InvenTree/issues/6201

(cherry picked from commit 7f231cb6c1)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-11 22:55:51 +11:00
a41efb31b6 Fix for mobile app documentation URL (#6198) (#6199)
Closes https://github.com/inventree/InvenTree/issues/6140

(cherry picked from commit 9715af564f)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-11 09:11:35 +11:00
78b559306b Ready fix (#6191) (#6194)
* Update "isRunningMigrations" method

* Update other apps.py files

(cherry picked from commit 445551e6f3)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-11 00:37:36 +11:00
8708ec9bac Fix resource classes for order models (#6188) (#6190)
- PurchaseOrder
- ReturnOrder
- SalesOrder

Fixes https://github.com/inventree/InvenTree/issues/6155

(cherry picked from commit 73cc39bb68)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-10 23:53:27 +11:00
864236b27a Handle case where ref_url is invalid (#6186) (#6189)
(cherry picked from commit 9f01962c4e)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-10 23:48:35 +11:00
5a06e00159 Update version.py (#6187)
Bump version number to 0.13.1
2024-01-10 23:37:13 +11:00
cb7b4cbc1a Improve data import for PartParameterTemplate (#6182) (#6185)
- Create Resource class which uses InvenTreeResource base
- Ensure 'units' field is converted to string if empty
- Handle null choices field in PartParameterTemplate model

(cherry picked from commit a23235400d)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-10 22:53:17 +11:00
74e8f92be5 Re-implement no-frontend flag in "invoke update" (#6183) (#6184)
- Allows old installers to work once more
- Ref: https://github.com/inventree/InvenTree/issues/6177

(cherry picked from commit 53ac6c724d)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-10 22:53:00 +11:00
264b560f37 Cancel purchase order - Error object (#6137) (#6138)
Fixes #6136

Error introduced in https://github.com/inventree/InvenTree/pull/6017

(cherry picked from commit 88f86efd4c)

Co-authored-by: Matthias Mair <code@mjmair.com>
2023-12-27 11:57:36 +01:00
9f8ee5a095 Fix to clear SO Allocations on receipt of Return Order Line Item (#6117) (#6124)
* Added stock_item.clearAllocations() to order.models.py

* Update models.py ReturnOrder clear allocations on line receipt

(cherry picked from commit fc5645a9a5)

Co-authored-by: mcollins-DL <71047397+mcollins-DL@users.noreply.github.com>
2023-12-21 10:45:57 +04:00
79fdf9243b Update django-allauth version (#6099) (#6114)
* Patch for django-allauth 0.55.0

- Some breaking changes here
- Add logger error if auth provider cannot be imported
- Fix for API endpoints

* Only provide URLs for configured plugins

* Update for django-allauth 0.56.0

- Remove support for keycloak
- Remove example from configuration template

* Update django-allauth in requirements.txt

* Update requirements.in

* Refactor SSO functions into common file

* Update config template file

* Update docs

* Fix template files

* Log SSO exceptions to the database

- WIll help greatly with debugging installs

* Add note about error handling in docs

(cherry picked from commit a63529a9cf)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-12-18 17:39:26 +11:00
35266b80f4 Remove --no-frontend option from installer (#6111) (#6112)
- This swtich is no longer present in `invoke update`
- Frontend installation is off by default
- Fixes https://github.com/inventree/InvenTree/discussions/6109

(cherry picked from commit 148bf0764b)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-12-18 10:46:42 +11:00
05d3458f67 Small tweak for log output (#6102) (#6103)
(cherry picked from commit 95d29f18e9)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-12-16 11:46:41 +11:00
301afaa9df Update version.py (#6095)
Bump version to 0.13.0
0.13.0
2023-12-15 21:38:43 +11:00
ad97ea41a0 Another attempt at fixing unit test (#6096) 2023-12-15 21:37:00 +11:00
2c45d88d15 Fix unit test (#6084)
* Add debug print statements

* Add more debug prints

* Upate unit test

- Use global variables to ensure correct error is raised
- collect() does not always collect in the same "order"
2023-12-15 17:23:33 +11:00
64671dce20 Table Hook Updates (#6093)
* Update useTable hook

- Storage for "selected rows"
- Aim is to make row selection available outside table component

* Use updated hook to manage row selection

* Add more table data to useTable:

- hidden column selection
- search terms

* Remove unused import

* Remove unused function

* Cleanup
2023-12-15 13:53:46 +11:00
72167630ac Add support for serbian language (#6091) 2023-12-15 10:06:41 +11:00
2aa993bcf5 Add item key (#6089)
- Adds "key" to FilterItem component
2023-12-15 09:01:56 +11:00
aecdc0739d Revert "[PUI] URl / panel fix (#6078)" (#6088)
This reverts commit 902eafcc75.
2023-12-15 08:38:30 +11:00