14429 Commits

Author SHA1 Message Date
Oliver
b479d0763b Cherry pick changes from fe0d9c19230013471a2100fbc1f41c7694f318fa 2023-11-15 10:33:32 +11:00
github-actions[bot]
57e9497da1
Prevent settings from writing to the database during import (#5844) (#5845)
- Fixes conflicts which can occur due to importing duplicate settings from a data file

(cherry picked from commit 29a191e05e605d9def9022558eea4a29b8f517d9)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
0.12.9
2023-11-03 12:15:59 +11:00
Oliver
a7c0882c02
Fix exchange rate updates (#5843)
- Handle base currencies which are not USD
- API changed "base_currency" to "base"
2023-11-03 11:58:39 +11:00
Oliver
5d55555394
Wrap inventreeBranch check in try/except (#5842)
- Same as in master branch
2023-11-03 11:35:21 +11:00
Oliver
d2a313bda9
Handle ValueError when creating stock item (#5751) 2023-10-19 11:46:32 +11:00
Oliver
e366cd1865
Update version.py
Bump version number to 0.12.9
2023-10-19 10:48:27 +11:00
github-actions[bot]
86542bc561
Fix location priority when receiving items (#5661) (#5663)
* Fix location priority when receiving items

Fixes POReceiveBarcodeHandler

* Unit test adjustment

(cherry picked from commit 4b13f3b0defde5f621971e25b9b9918a393776df)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-10-05 00:33:09 +11:00
Oliver
a7487ff842
Backport of https://github.com/inventree/InvenTree/pull/5632 (#5650)
Co-authored-by: Matthias Mair <code@mjmair.com>
0.12.8
2023-10-03 12:55:15 +11:00
Oliver
5725a9e271
Fix for readthedocs build config file (#5651) 2023-10-03 12:28:14 +11:00
Oliver
fe9a56a5c1
Allow stocktake quantity to be zero (#5644)
- Backport of https://github.com/inventree/InvenTree/pull/5627/

Co-authored-by: Oliver Lippert <oliver@allesit.de>
2023-10-02 22:49:10 +11:00
Oliver
39e682cd45
Correctly extract error information if plugin install fails (#5638) 2023-10-01 14:29:08 +11:00
github-actions[bot]
a36ab0c004
Fix bug in loading setting from cache (#5612) (#5616)
* Fix bug in loading setting from cache

- Need to bring out "cache" key first, otherwise it gets included in the calculated cache key
- Reference: https://github.com/inventree/InvenTree/issues/5586

* Unit test fixes

(cherry picked from commit 87a8755e1b1d0b7853878e1725b06abc2ed54a28)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-09-25 16:05:17 +10:00
github-actions[bot]
0b45d6f236
Use prefetch to improve query efficiency (#5613) (#5614)
- Significantly improves performance of users.models.update_group_roles() function
- Ref: https://github.com/inventree/InvenTree/pull/5612

(cherry picked from commit 200bc5bd3d56ca2c1cd1a7cedab63e4cce0f5b5f)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-09-25 13:35:13 +10:00
github-actions[bot]
978e08f3a3
stop cascade update_pricing if prices didnt change (#5606) (#5607)
Co-authored-by: Oliver Lippert <oliver@lipperts-web.de>
(cherry picked from commit 2f0dbf97768e7dbae495216969a3fe35b2cb2b8f)

Co-authored-by: Oliver Lippert <oliver@allesit.de>
2023-09-24 23:06:03 +10:00
github-actions[bot]
85b8157611
Primary address fix (#5592) (#5598)
* Improve management of primary address for a company

- Simplify approach (remove "confirm_primary" field)
- Remove @receiver hook
- Move all logic into Address.save() method

* Make address primary if it is the only one defined for a company

* Update frontend table

* Fix saving logic

* Actually fix it this time

* Fix for unit test

* Another test fix

(cherry picked from commit 324d5929b56b3f17a36ff85a792c5b22fef517df)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-09-23 10:25:12 +10:00
github-actions[bot]
aaabce9873
Fix set password when no old password exists (#5562) (#5563)
(cherry picked from commit fe68598c1b4aa8ba5c4710a195054048baff7306)

Co-authored-by: Firas Ben Mefteh <ben.meft0@gmail.com>
2023-09-18 20:58:17 +10:00
Oliver
f5a36ce44e
Update version.py (#5553)
Bump to 0.12.8
2023-09-18 13:35:33 +10:00
Oliver
6563b4c413
Pin setuptools version for docker CI (#5552)
* Pin setuptools version for docker CI

* Fix doc links
0.12.7
2023-09-16 12:17:43 +10:00
github-actions[bot]
abed9fb284
Update required parts for build orders (#5542) (#5543)
- When a BomItem is created or edited, update any active build orders which use it
- Runs as a background task
- Fixes https://github.com/inventree/InvenTree/issues/5541

(cherry picked from commit c8021ec319a7a1d06cc96a156e66ea1adb77ac42)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-09-15 10:06:39 +10:00
Lukas
09872eec8e
[0.12.x] Fix missing filters for get settings validator (#5480) (#5522)
* Fix missing filters for get settings validator (#5480)

* Fix missing filters for get settings validator

* merge default model instance filters and kwargs

* Added tests for validators

* Give it a try without the kwargs passed to clean in save function

* Added string for identification for debug statement

* Added more debug comments

* Added more debug prints

* Fix test debug

* Modiefied workflow

* trigger ci

* Fix test and remove unused kwargs

* Added debug prints

* Only run one test in ci

* Added more debug code

* Remove all debug prints and reset workflow

* Reset overlooked file

(cherry picked from commit 9a6c2d2953adebda8a7ca0262cd3e1f3bb2e7c6a)

# Conflicts:
#	InvenTree/plugin/samples/integration/test_sample.py

* Add missing import

* Added second missing import
2023-09-11 10:57:42 +10:00
github-actions[bot]
099b837a4e
Login form fix (#5502) (#5504)
* Handle login without supplier user

- Use custom login form
- Redirect back to login page
- No longer throws error

* Fix method return

(cherry picked from commit 71ad4a1c99c35d6922c8c2f3b24bf9858db29bcd)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-09-05 12:43:39 +10:00
Oliver
cf977ad29a
Update version.py (#5474)
Bump version to 0.12.7
2023-08-24 18:51:20 +10:00
github-actions[bot]
72464c50cc
Url fix (#5472) (#5473)
* Use urljoin function to construct absolute URL

* Add unit test

(cherry picked from commit 8da5d62c6983addbe04a4c0aae4eddac91d873d1)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-08-24 16:04:42 +10:00
Oliver
942bc5350d
Bump version to 0.12.6 (#5465)
- Skipping 0.12.5 due to an error on the last release
0.12.6
2023-08-23 12:22:32 +10:00
github-actions[bot]
7876676114
Fix plugin pickeling (#5412) (#5457)
(cherry picked from commit 1fe382e318e44cfa19b3420d5bff8be941c77102)

Co-authored-by: Lukas <76838159+wolflu05@users.noreply.github.com>
2023-08-17 21:04:23 +10:00
Oliver
ea039645c3
Update unit tests (#5446)
- Remove failing test which no longer applies
2023-08-14 16:39:00 +10:00
github-actions[bot]
b5c7cf0779
Fix html tag in template (#5445) (#5448)
- Ensure <td> tag is closed correctly

(cherry picked from commit e7b5b145bfe5e1566080e9d6b8e67f44e872374d)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-08-14 16:28:58 +10:00
github-actions[bot]
89d8e47bab
Disable "add rate" button in Admin interface (#5444) (#5447)
- Does not work with custom backend
- Throws error if the button is pressed
- So, remove the button

(cherry picked from commit a2f614ad41853b7c45232cb15929e5d217088fd5)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-08-14 16:19:13 +10:00
github-actions[bot]
b8e726d8a4
Catch IndexError when importing data (#5439) (#5443)
* Catch IndexError when importing data

* Also handle TypeError

(cherry picked from commit 93e4dadb49b1cbe304ed9654af8f9d1d944c112e)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-08-14 15:39:07 +10:00
github-actions[bot]
3b238fdbba
Fix for potential NoReverseMatch error (#5440) (#5442)
- Check that the database model really does exist in the template code

(cherry picked from commit a8118ed406a1c41986738e4ff6f16b445cbc1b10)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-08-14 15:21:29 +10:00
github-actions[bot]
df8c2692a0
Fix build output unallocate button (#5426) (#5427)
(cherry picked from commit dce565b4a31b5aa35216dc04405eaa31024b5000)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-08-11 10:13:52 +10:00
Oliver
7391f33a97
Do not enforce units for part parameters (#5423)
Backport of #5160
2023-08-10 21:13:46 +10:00
Oliver
b1158f7083
Bump version number to 0.12.5 (#5424) 2023-08-10 21:13:37 +10:00
github-actions[bot]
4969628150
Purchase history graph fix (#5421) (#5422)
* Fix debug messages

* Fix bug in purchase history chart

- Use new pack_quantity_native attribute

(cherry picked from commit 86ca0b27a42a1dc2dea8034444ea1b30d1fd9ca0)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-08-10 14:33:37 +10:00
Oliver
57eada1da1
backport email fix (#5409)
- Backport of https://github.com/inventree/InvenTree/pull/5396
0.12.4 0.12.5
2023-08-08 15:19:00 +10:00
Oliver
f526dcdeec
fix cli on 22.04 (#5204) (#5395)
* fix cli on 22.04 (#5204)

(cherry picked from commit d4fad4f5c8028cf7eaf49c61416e0b68be6947b4)

* Update weasyprint docs link

* Another link fix

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2023-08-03 16:21:53 +10:00
github-actions[bot]
aacf35ed47
Improve sorting of part column for BOM table (#5386) (#5387)
(cherry picked from commit c39ae80a135c467741c6a573abaad684fad606b3)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-08-02 17:43:08 +10:00
github-actions[bot]
ca986cba01
Fix auto-allocation of build outputs (#5378) (#5379)
- Creation of BuildItem objects was using old model references

(cherry picked from commit 668dab4175a2de227c1bb0f8ef3f78100f81e903)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-08-01 11:26:10 +10:00
github-actions[bot]
699fb83dd4
Fix SSO check comparing id against name and extend log output (#5340) (#5377)
* add error log on SSO check failure

* sso_check_provider: fix by comparing against id

the name is the pretty printed version which not necessarily is the same
as the provider id it is compared against. This fails e.g. for the
microsoft allauth extension where the id is microsoft, but the name is
"Microsoft Graph".

Closes: #5330
(cherry picked from commit ee5416719f2df683e10a94840840389c088460de)

Co-authored-by: Hendrik v. Raven <hendrik@consetetur.de>
2023-08-01 10:39:46 +10:00
Oliver
dd6e225cda
Update version.py (#5374)
Bump version number to 0.12.4
2023-07-31 12:45:49 +10:00
github-actions[bot]
1f3a49b1ae
Fix for migration - updating from old version (#5372) (#5373)
(cherry picked from commit 90383ccb536fdb0618aae6d8ad9cb552cf31a48a)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
0.12.3
2023-07-31 12:43:20 +10:00
github-actions[bot]
385e7cb478
Return 404 on API requests other than GET (#5365) (#5366)
- Other request methods need love too!

(cherry picked from commit 59ffdcaa1906f306378984d12cc40f61c7b80621)
(cherry picked from commit b89a120f9e673845e67ad6729bddb6a77974472d)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-07-28 22:14:55 +10:00
github-actions[bot]
73768bfee1
Handle purchase price export for .xls files (#5362) (#5363)
(cherry picked from commit 87da286f2f7b5bee7a168ad9f0ccd35a68ae7e09)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-07-28 15:36:34 +10:00
github-actions[bot]
946fe2df29
Handle errors when printing reports (#5360) (#5361)
- Re-throw as a ValidationError
- Results in a 400 error, not a 500

(cherry picked from commit 5f3d3b28b367e4ead79aeafc34c8c8da4d7564cf)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-07-28 14:23:43 +10:00
github-actions[bot]
afa7ed873f
Exclude some common fields from django-import-export (#5349) (#5351)
- Add "get_fields()" method to InvenTreeResource
- Override default behaviour and exclude some common fields
- Will flow down to any inheriting classes

(cherry picked from commit 941451203a3d9a9ef2c522aba19cdbaaa140e05a)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-07-26 17:22:21 +10:00
github-actions[bot]
46da332afe
Allow duplicate BOM items when duplicating a part (#5347) (#5350)
(cherry picked from commit 6660508326c3dc5a69b3aa13e0ccd02712b60dd7)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-07-26 16:54:20 +10:00
Oliver
072b7b3146
Update version.py
Bump version number to 0.12.3
2023-07-25 11:46:41 +10:00
github-actions[bot]
1d51b2a058
Email config fix (#5336) (#5338)
* Change for DEFAULT_FROM_EMAIL

- Use USERNAME if not specified

(cherry picked from commit 487ac917c90e9fe3da4effaa9326b707ceecd321)

* Email configuration fails if DEFAULT_FROM_EMAIL not set

(cherry picked from commit 01e573c3a2702e7c21ed13b0cb44280c89d3dee1)

* Docs update

(cherry picked from commit bfedb9cf87dbbf8024412afa6454361d45afe967)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
0.12.2
2023-07-25 11:45:17 +10:00
github-actions[bot]
08f9bebdf0
Fix admin url to point to right model (#5319) (#5321)
(cherry picked from commit 9b377ccfbf5eed36d05c374e304f1c8bb513cadd)

Co-authored-by: Marcel Pörner <me@nerade.de>
2023-07-23 22:38:27 +10:00
github-actions[bot]
6d6629f11c
Stock installed table fix (#5305) (#5306)
* Prevent installed items from being hidden

* Fix parent / child relationship

(cherry picked from commit f70294b24762d96e6fde8ad1a44bafc272c5efb2)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2023-07-21 23:57:00 +10:00