2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 03:55:41 +00:00
Commit Graph

16244 Commits

Author SHA1 Message Date
e2a092ea04 Remove trailing slash from SITE_URL (#9559) (#9560)
- ref: https://github.com/inventree/InvenTree/discussions/9552
- ref: https://stackoverflow.com/questions/56404930/when-trying-set-corsheaders-in-settings-py-file

(cherry picked from commit 527652007e)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
0.17.11
2025-04-22 12:50:17 +10:00
f2770f0711 Url fix 2 (#9548) (#9550)
* Logic fix

* Playwright test

* Revert "Playwright test"

This reverts commit a63b23961e.

* Simplify test

* Cleanup test
2025-04-21 21:56:55 +10:00
86513844f2 Fix for URL validation (#9539) (#9540)
* FIx for URL validation

* Further fixes

(cherry picked from commit 8d48f9cecd)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-04-20 08:31:42 +10:00
230ddd926f Update version.py (#9468) 2025-04-07 10:15:39 +10:00
8d206bd311 [UI] Row hover (#9465) (#9466)
* [UI] Row hover (#9465)

* Add red color

* Improve table cursor

- Show "pointer" (hand) icon when actions available
- Improve context menu

* Fix import
0.17.10
2025-04-06 15:21:17 +10:00
cf60d809da Notification permissions (#9449) (#9464)
* Updated type hints

* Fix tooltip bug

* Check user when sending notification

* Fix test

* Update unit test

* More unit test fixes

* Tweak playwright tests
2025-04-05 22:09:35 +11:00
b1a264bf2a Handle potential null header (#9462) (#9463)
(cherry picked from commit f66efa7733)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-04-05 09:52:47 +11:00
1dd056fdf2 Wrap values() call in list to fix type error (#9460) (#9461)
(cherry picked from commit 721f56f36e)

Co-authored-by: Joe Rogers <1337joe@users.noreply.github.com>
2025-04-05 09:20:38 +11:00
2a9d737157 Report cache fix (#9447) (#9448)
* Adjust allowed CORS headers

* Disable caching in template preview

(cherry picked from commit c4f98cd6a1)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-04-03 15:21:57 +11:00
00470a844c Update overdue order notification (#9444) (#9445)
* Update overdue order notification

- Check individual line items too

* Fix typo

(cherry picked from commit 67bdf3162a)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-04-03 11:30:22 +11:00
5e26394500 Serialize stock fix (#9441) (#9443)
* Fix bug which hid the "serialize stock" button

* Add playwright tests

* Adjust check

(cherry picked from commit a18b18a3fd)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-04-03 09:04:15 +11:00
3c71d62d27 Docs tweak (#9422) (#9424)
(cherry picked from commit e30786b068)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-03-31 19:06:54 +11:00
d881037bde [UI] Improve order parts wizard (#9389) (#9421)
* [UI] Improve order parts wizard

- Enhance placeholder text
- Precalculate order quantity

* Tweak playwright tests

* Simplify tests

(cherry picked from commit 66d5180d8f)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-03-31 18:47:50 +11:00
9a58d87eec fixed small bug in doc report sample templates (#9415) (#9418)
* Add part full name to supplier part table

* Add context variables for sales order report to the docs

* Added more context variables on orders to the docs

* fixed small bug in doc report sample templates

(cherry picked from commit 7b994a3d07)

Co-authored-by: Michael <michael@buchmann.ruhr>
2025-03-31 07:59:19 +11:00
1019e9cc8d Docker updates (#9414) (#9417)
* Typo fix

* Examples to .env file

(cherry picked from commit b116e09717)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-03-31 07:59:05 +11:00
8b59d8c04a Improve custom maintenance mode backend (#9396) (#9397)
* Improve custom maintenance mode backend (#9396)

* Improve custom maintenance mode backend

- Utilizing global settings functions
- Will use global cache if available
- Fewer DB hits per request

* Twaeak query limits

* Tweak test
2025-03-27 19:53:16 +11:00
ccaf3459ce use dayjs in datefield (#9380) (#9381)
(cherry picked from commit 2bd26c0f49)

Co-authored-by: Jacob Felknor <jacobfelknor073@gmail.com>
2025-03-26 10:56:33 +11:00
4987149979 Bug fix for activating plugins via UI (#9338) (#9370) 2025-03-24 22:08:38 +11:00
02876f3c54 [UI] Edit fix (#9367) (#9368)
* Fix for editing stock location

* Fix for editing part category

(cherry picked from commit 8997f193c9)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-03-24 20:45:58 +11:00
ff4df83ccd Update version.py (#9325)
Bump version number to 0.17.10
2025-03-17 23:33:26 +11:00
0491b10438 Tweak for data import (#9010) (#9322)
- Do not override specified default values
0.17.9
2025-03-17 23:11:31 +11:00
92f6f8b1f7 [Bug] Import fix (#9008) (#9321)
* [Bug] mport fix (#9008)

* Better handling of request object in serializers

* Pass request object through

- Required to extract user information

* Strip column header during import

- Prevent mismatch due to whitespace

* Fix for "minimum stock" field

* Fix for part serializer

* Extract default values on import

* Remove outdated migration message

* Bump API version

* Reintroduce typo

- To prevent API change
2025-03-17 21:11:27 +11:00
3ffbb1cfc7 Fix currency rendering (#9308) (#9310)
- Closes https://github.com/inventree/InvenTree/issues/9300

(cherry picked from commit 4eaa5880c1)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-03-16 08:56:57 +11:00
2f1e3817f1 Prevent sentry reporting in test mode (#9304) (#9306)
(cherry picked from commit cdb445583b)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-03-15 23:04:00 +11:00
af0a2822d1 Call machine func (#9191) (#9298)
* Force label printing to background worker

* Refactor "check_reload" state of machine registry

- In line with plugin registry
- More work can be done here (i.e. session caching)

* Better handling of call_plugin_function

* Wrapper for calling machine function

* Use AttributeError instead

* Simplify function offloading

* Check plugin registry hash when reloading machine registry

* Cleanup

* Fixes

* Adjust unit test

* Cleanup

* Allow running in foreground if background worker not running

* Simplify call structure
2025-03-14 13:40:37 +11:00
75420fc97e Update version.py (#9297)
Bump version number to 0.17.9
2025-03-14 09:28:55 +11:00
3cae0d5066 Fix asset file serving (#9295)
- Backport of https://github.com/inventree/InvenTree/pull/9292
0.17.8
2025-03-14 09:04:42 +11:00
21d266ab95 Auto-fill currency for new supplier part (#9286) (#9287)
- Closes https://github.com/inventree/InvenTree/issues/9284

(cherry picked from commit 7a43c3a83e)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-03-13 02:02:49 +11:00
1ae27a6b77 Ignore sentry for TemplateSyntaxError (#9239) (#9241)
- Getting flodded with reports of users misapplied template filters

(cherry picked from commit 017d96f64e)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-03-05 22:01:12 +11:00
b18ac57fb8 Tracking api fix (#9238) (#9240)
* [Bug] Fix search for StockTrackingList

- Removed invalid field

* Add unit test coverage for failing condition

* Fix 'notes' field for extra line item API

(cherry picked from commit 21ae1138ce)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-03-05 22:00:47 +11:00
053b37ec3a Fix font size in location column (#9230) (#9231)
(cherry picked from commit d5a176c121)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-03-04 23:30:28 +11:00
6fa6063639 [UI] Table Update (#9220) (#9221)
- Retain user selection for pageSize

(cherry picked from commit 8cee2e36ca)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-03-03 19:16:53 +11:00
9b68dea26d Remove restriction on row action (#9201) (#9202)
(cherry picked from commit 92a9423c21)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-02-28 16:49:41 +11:00
9d21776c86 Add 'note' field to form (#9186) (#9188)
(cherry picked from commit 92edbf41ab)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-02-26 14:14:30 +11:00
4c9f042f8c Handle case of null stock location (#9183) (#9187)
(cherry picked from commit 94c2157d3c)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-02-26 09:31:58 +11:00
3625b8f14c Use ref pattern on PO duplicate (#9100) (#9147)
* use ref pattern on PO duplicate

* use ref patterns on duplicate for other types of orders

* revert unintentional change to pre-commit

* add playwright tests

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
(cherry picked from commit 2cabd02c6b)

Co-authored-by: Jacob Felknor <jacobfelknor073@gmail.com>
2025-02-22 20:46:00 +11:00
cd41ca2a87 Batch code backport (#9138)
* Batch code fix (#9123)

* Fix batch code assignment when receiving items

* Add playwright tests

* Harden playwright tests

* Refactoring

* Handle undefined values

* Fix conflicts
2025-02-22 11:52:16 +11:00
8a2fce9c36 Barcode validation fix (#9127) (#9130)
* Fix logic for adding items to SalesOrder

* Same thing for purchase orders

* Update serializers.py

Revert typo fix

- Otherwise, we need to do an API bump and the PR can't be back-ported!

(cherry picked from commit bc9dbf7df4)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-02-21 22:22:45 +11:00
ee87cd7b23 Ignore inactive parts (#9125) (#9128)
(cherry picked from commit 6930ae7122)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-02-21 21:06:28 +11:00
940abaa179 [UI] Pricing chart fixes (#9119) (#9124)
* Fix default values for pricing override

* Fix broken calculation for sale pricing

- Was previously excluding COMPLETED orders

* Fix for PricingOverviewPanel

* Fix for InvenTreeMoneySerializer

- Numbers should be represented as numbers!

* Front-end wrangling too

* Fix unit test
2025-02-21 20:39:20 +11:00
7fefa5c213 Update version.py (#9112)
Bump version number to 0.17.8
2025-02-20 11:57:56 +11:00
28726db86f Bug fix for receiving line item event (#9071) (#9072)
- Use StockItem ID correctly
- Provide line ID

(cherry picked from commit f27a84a7e5)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
0.17.7
2025-02-13 14:46:55 +11:00
eef1aad464 Update version.py (#9067)
Bump version number to 0.17.7
2025-02-12 17:14:45 +11:00
3b6b41976f Fix for data import (#9060) (#9065)
- Prevent shadow overwrite of default_values dict
- Remove dead code

(cherry picked from commit 7049e84ac3)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
0.17.6
2025-02-12 07:31:16 +11:00
407ccb7bd2 [Backport] Update supported postgres-cli version to 15 (#9042)
* Update supported postgres-cli version to 15

* Update docs
2025-02-07 13:58:40 +11:00
d7ed114e2c Adjust playwright testing (#9043)
* Adjust playwright testing

- Backporting critical playwright changes

* Fix for test

* Remove problematic test
2025-02-07 12:49:00 +11:00
c7a0265794 feat(backend): Improve error with missing manifest (#8957) (#9036)
* package tag results better

* Add docs for missing frontend

* better error indication
Fixes #8875

* fix test assertations

* fix test exception

* group setup admin stuff

* add operations supgourp

* add basic structure

* move error code

* fix link

* fix grammar issues

(cherry picked from commit bbeaf0e791)

# Conflicts:
#	docs/docs/faq.md

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-02-05 13:55:04 +11:00
5bc56c826a Update version.py (#9019)
Bump version number

Co-authored-by: Matthias Mair <code@mjmair.com>
2025-02-05 12:52:56 +11:00
1b42c00747 Enhance creation of default settings (#9028) (#9029)
- Remove cache requirement
- Replaces https://github.com/inventree/InvenTree/pull/9021

(cherry picked from commit 445fa45394)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-02-04 23:04:01 +11:00
0f9bddbcd2 Report bugfix (#9013) (#9014)
- Ensure default label templates exist
- Ensure default report templates exist

(cherry picked from commit 2a6434ead8)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
0.17.5
2025-02-03 08:03:59 +11:00