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

1083 Commits

Author SHA1 Message Date
8b59d8c04a Improve custom maintenance mode backend () ()
* Improve custom maintenance mode backend ()

* 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 () ()
(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 () () 2025-03-24 22:08:38 +11:00
02876f3c54 [UI] Edit fix () ()
* 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 ()
Bump version number to 0.17.10
2025-03-17 23:33:26 +11:00
0491b10438 Tweak for data import () ()
- Do not override specified default values
2025-03-17 23:11:31 +11:00
92f6f8b1f7 [Bug] Import fix () ()
* [Bug] mport fix ()

* 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 () ()
- 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 () ()
(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 () ()
* 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 ()
Bump version number to 0.17.9
2025-03-14 09:28:55 +11:00
3cae0d5066 Fix asset file serving ()
- Backport of https://github.com/inventree/InvenTree/pull/9292
2025-03-14 09:04:42 +11:00
21d266ab95 Auto-fill currency for new supplier part () ()
- 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 () ()
- 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 () ()
* [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 () ()
(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 () ()
- 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 () ()
(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 () ()
(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 () ()
(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 () ()
* 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 ()
* Batch code fix ()

* 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 () ()
* 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 () ()
(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 () ()
* 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 ()
Bump version number to 0.17.8
2025-02-20 11:57:56 +11:00
28726db86f Bug fix for receiving line item event () ()
- Use StockItem ID correctly
- Provide line ID

(cherry picked from commit f27a84a7e5)

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

(cherry picked from commit 7049e84ac3)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-02-12 07:31:16 +11:00
d7ed114e2c Adjust playwright testing ()
* 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 () ()
* package tag results better

* Add docs for missing frontend

* better error indication
Fixes 

* 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 ()
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 () ()
- 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 () ()
- Ensure default label templates exist
- Ensure default report templates exist

(cherry picked from commit 2a6434ead8)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-02-03 08:03:59 +11:00
b0fc42d906 Debounce checkLoginState to prevent unexpected redirection during testing () ()
(cherry picked from commit e93b9692a1)

Co-authored-by: Dean <me@dgardiner.net>
2025-02-03 08:03:40 +11:00
993849813f Select first and only pending shipment for sales order barcode allocation () ()
(cherry picked from commit ede30cec7a507aab9c063fc44ab5d9e70ec902d6)

Co-authored-by: Dean <me@dgardiner.net>
2025-01-29 22:35:51 +11:00
453c726d1e Fix for chart rendering () ()
- Graphs like numbers, not strings, I guess...

(cherry picked from commit 0c56a3132b)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-01-29 17:43:33 +11:00
b6ca9ec6a4 Update version.py
Bump version number to 0.17.5
2025-01-28 20:04:50 +11:00
de431b8e3d Update version.py ()
Bump version number to 0.17.4
2025-01-28 19:52:48 +11:00
c89fe44fea SalesOrder migration unit test () ()
* Unit test for SalesOrder data migration

* make field checks more stable

* Adjust migration  strategy

* Fix for data migration

* Simplify login test for playwright

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
(cherry picked from commit a13f5681a1)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-01-27 22:54:12 +11:00
4a3035ec85 Plugin reload fix () ()
* Add option to disable auto-reload of dev server

* Force plugin reload

* Add unit testing for plugin reload

- Requires modifications to registry.py

(cherry picked from commit 8e8b7158b7)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-01-22 17:01:34 +11:00
0ebcff1a16 Include location detail in build output table () ()
* Include location detail in build output table

* Raise validation error if trying to split an in-production item

(cherry picked from commit 68d3620bb2)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-01-21 01:47:56 +11:00
ee06e466ca Import fix () ()
* Exclude "tags" fields from data import

- May reintroduce at a later date
- Currently, no support for editing tags in frontend

* Refactor

(cherry picked from commit 2575c7276c)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-01-21 01:34:34 +11:00
7140ea8f43 Allow CORS for /plugin/ URLs () ()
- Ref: https://github.com/inventree/inventree-order-history/issues/17#issuecomment-2591275055

(cherry picked from commit 5de65891c3)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-01-15 18:03:30 +11:00
a0d6ae2a54 fix(plugin): Ensure plugins are only installed if not deactivated () ()
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
(cherry picked from commit fbe2131fa5)

Co-authored-by: Matthias Mair <code@mjmair.com>
2025-01-15 15:01:41 +11:00
74d8fe688e Upload timeout () ()
* Increase upload timeout for attachments

* Increase default API timeout

- To account for distant connections

* Use longer timeout when uploading files

* Debug for RTD testing

* Adjust commit extraction

* Cleanup debug output

* Include more vars in output

* Move debug output to top of file

* Add useful link

(cherry picked from commit c7e960728d)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-01-15 14:46:32 +11:00
295318ad18 Add Serbian to LanguageContext.tsx () () is
(cherry picked from commit c75630d1bd)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-01-12 10:17:05 +11:00
c26f5bd74f Update version.py ()
Bump version number to 0.17.3
2025-01-08 13:16:59 +11:00
4b564929d2 Extended error handling for get_user_color_theme () 2025-01-07 23:53:10 +11:00
8576fbbade Ensure error is raised () ()
(cherry picked from commit 3a62bdd276)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-01-07 17:31:59 +11:00