2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 03:26:45 +00:00

14892 Commits

Author SHA1 Message Date
github-actions[bot]
0804ecf538
Handle null case for delivery_methods (#6411) (#6413)
(cherry picked from commit fc86064bd13f4b42a0b5c3c7bc68e9f7aa92e140)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
0.13.5
2024-02-05 21:29:24 +11:00
github-actions[bot]
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 e9c6dd82737832052cc647b4161658d75d6b66fd)

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

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

(cherry picked from commit 25573838921c13465bcfb8afdc7e2c030c298bab)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-31 15:58:45 +11:00
github-actions[bot]
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 9db3efa0858fb1a9a95ab10fc4726350276a062e)

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

* Update i18n.py

Enforce stringiness

(cherry picked from commit b42f3de3577f754c76c5a8afb0d93d632cc1e439)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-30 11:03:35 +11:00
Oliver
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
Oliver
3daf85c3d0
Update version.py (#6329)
Bump version number to 0.13.5
2024-01-24 15:51:51 +11:00
github-actions[bot]
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 0a94758d636297832f7374be16dfa6c1a2d7f23b)

Co-authored-by: Philipp Fruck <dev@p-fruck.de>
2024-01-24 09:11:12 +11:00
github-actions[bot]
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 d8f69c0609e1360aaf3749c62235065aa99ff462)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
0.13.4
2024-01-24 06:32:55 +11:00
Oliver
12cd6a915b
Update version.py (#6313)
Bump version number to 0.13.4
2024-01-22 17:07:05 +11:00
Oliver
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
github-actions[bot]
2c6bc8852b
django-allauth==0.6.1 (#6301) (#6302)
(cherry picked from commit c5d090237907e44d3b185b50a4753f72cd041a15)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-21 10:30:07 +11:00
Oliver
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
Oliver
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
github-actions[bot]
e0b2895ef5
Do not create owners when importing data (#6271) (#6272)
- Prevent issues due to duplicate Owner objects

(cherry picked from commit c3a5d777b12307c78e35ad49c4a4e8b5b5584ff4)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-18 10:44:11 +11:00
Oliver
9aa859a428
Update version.py (#6266)
Bump version number to 0.13.3
2024-01-17 23:34:17 +11:00
Oliver
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
Oliver
1abdb1fd46
Backport changes to tasks.py (#6256)
- Fixes ongoing issues with import/export
2024-01-16 21:47:41 +11:00
Bobbe
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
github-actions[bot]
f259fa6792
Add tests for get_purchase_orders logic (#6236) (#6238)
(cherry picked from commit d2d59e07095af36b8b29b04e03186a53547f76ef)

Co-authored-by: Bobbe <34186858+30350n@users.noreply.github.com>
2024-01-14 12:49:31 +11:00
Bobbe
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
Oliver
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
Oliver
e22779872e
Update version.py (#6220)
Bump version number to 0.13.2
2024-01-13 00:30:41 +11:00
Oliver
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
Oliver
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
github-actions[bot]
421081b8f6
Specify ForeignKey widget for importing destination field (#6205) (#6206)
- Fixes https://github.com/inventree/InvenTree/issues/6201

(cherry picked from commit 7f231cb6c152b185a1756227f551b7b9762ff773)

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

(cherry picked from commit 9715af564fa1af23a5cccf50ce286e0b85f558c9)

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

* Update other apps.py files

(cherry picked from commit 445551e6f316bfa95a9a75e4440ab3cfd890dbea)

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

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

(cherry picked from commit 73cc39bb6822a59f9206c31e2d502a0f7a731bc7)

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

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-10 23:48:35 +11:00
Oliver
5a06e00159
Update version.py (#6187)
Bump version number to 0.13.1
2024-01-10 23:37:13 +11:00
github-actions[bot]
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 a23235400d012569b882b5384d312845fdc55452)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-01-10 22:53:17 +11:00
github-actions[bot]
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 53ac6c724de08fb94be02c18ce5222af3d323324)

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

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

(cherry picked from commit 88f86efd4cb3abc5430ccdfd8fe7a829b3163c86)

Co-authored-by: Matthias Mair <code@mjmair.com>
2023-12-27 11:57:36 +01:00
github-actions[bot]
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 fc5645a9a541688a6b33094d704792a725674a16)

Co-authored-by: mcollins-DL <71047397+mcollins-DL@users.noreply.github.com>
2023-12-21 10:45:57 +04:00
github-actions[bot]
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 a63529a9cf9887017a342d7a344a9b174814d8ad)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-12-18 17:39:26 +11:00
github-actions[bot]
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 148bf0764b8221139e1b635bd76740e9829b1f34)

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

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-12-16 11:46:41 +11:00
Oliver
301afaa9df
Update version.py (#6095)
Bump version to 0.13.0
0.13.0
2023-12-15 21:38:43 +11:00
Oliver
ad97ea41a0
Another attempt at fixing unit test (#6096) 2023-12-15 21:37:00 +11:00
Oliver
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
Oliver
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
Oliver
72167630ac
Add support for serbian language (#6091) 2023-12-15 10:06:41 +11:00
Oliver
2aa993bcf5
Add item key (#6089)
- Adds "key" to FilterItem component
2023-12-15 09:01:56 +11:00
Oliver
aecdc0739d
Revert "[PUI] URl / panel fix (#6078)" (#6088)
This reverts commit 902eafcc752c71d027cddac68fafd059b7b5b8fc.
2023-12-15 08:38:30 +11:00
Oliver
cd3e7037c5
Update devcontainer docs (#6085)
- Much better performance running from WSL filesystem
2023-12-14 16:53:09 +11:00
Oliver
17068ca5a2
Add docs on using editable install for plugin development (#6083)
* Add docs on using editable install for plugin development

* Add info
2023-12-14 14:24:00 +11:00
Oliver
99c92ff655
Sales order barcode allocate (#6072)
* Bug fix for BarcodePOReceive endpoint

- Existing scan must match "stockitem" to raise an error

* bug fix: barcode.js

- Handle new return data from barcode scan endpoint

* Add barcode endpoint for allocating stock to sales order

* Improve logic for preventing over allocation of stock item to sales order

* Test for sufficient quantity

* Bump API version

* Bug fix and extra check

* Cleanup unit tests

* Add unit testing for new endpoint

* Add blank page for app sales orders docs

* Add docs for new barcode features in app

* Fix unit tests

* Remove debug statement
2023-12-14 11:13:50 +11:00