Matthias Mair
2df049fe05
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue3005
2022-05-16 17:48:01 +02:00
Matthias Mair
0f5c03e44c
use direct import instead of text for offload
2022-05-16 17:45:51 +02:00
Oliver
c51f052f25
Merge pull request #3011 from matmair/matmair/issue2996
...
Remove python 2 code
2022-05-17 00:51:31 +10:00
Oliver
042cb021de
Merge pull request #2957 from SchrodingersGat/locate-mixin
...
Adds plugin mixin to "locate" items
2022-05-16 22:57:20 +10:00
Oliver Walters
bd17458f37
Add metadata endpoints for SalesOrder and PurchaseOrder models
2022-05-16 21:40:10 +10:00
Oliver Walters
37a74dbfef
Adds a metadata serializer class for accessing instance metadata via the API
...
- Adds endpoint for Part
- Adds endpoint for PartCategory
- Adds endpoint for StockItem
- Adds endpoint for StockLocation
2022-05-16 20:59:09 +10:00
Matthias
ecccfbd546
Remove encoding header
...
Fixes #2996
2022-05-15 20:33:00 +02:00
Matthias
136d642703
Merge branch 'fix-boolean' of https://github.com/matmair/InvenTree into fix-boolean
2022-05-15 17:52:34 +02:00
Matthias
77aeecf23a
make operators simpler
2022-05-15 17:52:23 +02:00
Oliver Walters
097afed78e
Adds metadata mixin class for adding JSON field to internal tables
...
- Add metadata field to stocklocation
- Add metadata field to stockitem
2022-05-16 00:45:16 +10:00
Oliver Walters
40513c556d
Remove locate button from top-level stock location
2022-05-16 00:10:50 +10:00
Oliver Walters
fa954b3812
Merge remote-tracking branch 'inventree/master' into locate-mixin
...
# Conflicts:
# InvenTree/InvenTree/api_version.py
# InvenTree/InvenTree/urls.py
2022-05-15 23:44:07 +10:00
Oliver
47ddafb728
Fix edge case when converting stock item to variant
...
- If the stock item had been created as part of a Build Order, and subsequently "converted" to a variant part, the conversion operation will fail
- Patch allows the build reference to be linked based on either the base part, or any conversion options
2022-05-12 15:15:51 +10:00
Oliver
a77d4b97b4
Refactor stock_list endpoint to use the new mixin
2022-05-12 11:29:33 +10:00
Oliver
db018af0ce
Prevent some model based events from triggering during data import
2022-05-10 13:43:16 +10:00
Oliver Walters
a17ea3ac10
Change "identify" to "locate" for consistency with the app
2022-05-10 08:31:40 +10:00
Oliver Walters
35fbb910e8
Enable button for locating a StockLocation
2022-05-09 23:45:29 +10:00
Oliver Walters
57f3efe758
Adds an endpoint for calling the plugin code to "locate" something
2022-05-09 23:42:28 +10:00
Oliver Walters
4704db5183
Adds 'locate item' and 'locate location' buttons
2022-05-09 22:48:26 +10:00
Oliver Walters
06e79ee91b
Move view mixin to plugin.views
2022-05-07 22:34:03 +10:00
Oliver Walters
60f799c90a
Add plugin view support for most of the remaining views
2022-05-06 23:32:42 +10:00
Oliver
1dee578907
Merge pull request #2931 from SchrodingersGat/more-api-functionality
...
Converting more forms to the API
2022-05-04 23:24:28 +10:00
Oliver Walters
82541ede32
More unit tests
...
- BuildOrderCancel
- StockItemInstall
- StockItemUninstall
2022-05-04 22:49:21 +10:00
Oliver Walters
1cefdfc2e4
PEP style fixes
2022-05-04 17:31:44 +10:00
Oliver Walters
adbcd68fe8
Refactor "uninstall stock item" form to use the API
2022-05-04 17:25:24 +10:00
Oliver Walters
5cf30a850d
Prune a lot of dead code
2022-05-04 17:01:19 +10:00
Matthias
e7b189ba29
fix templates
2022-05-02 22:41:24 +02:00
Matthias
de6507e918
update translation commands
2022-05-01 22:03:49 +02:00
Matthias
67ab45bdee
update depreciated paths
2022-05-01 22:00:18 +02:00
Matthias
d05472b30c
upgrade to pyhton 3.9 syntax
...
using pyupgrade
2022-05-01 21:53:12 +02:00
Matthias Mair
e75daec695
Merge branch 'inventree:master' into matmair/issue2694
2022-04-30 19:50:25 +02:00
Oliver Walters
0bda9c974e
PEP fixes
2022-04-29 01:35:09 +10:00
Oliver Walters
e0189be5a6
Adds ability to filter StockItemTestresult API list by Build ID
...
- Allows us to retrieve stock item test results in a single API query
2022-04-29 01:19:36 +10:00
Matthias Mair
dfd51174cb
Merge branch 'inventree:master' into matmair/issue2694
2022-04-27 17:48:19 +02:00
Oliver Walters
24da5d41b8
Add migration file
2022-04-26 20:21:15 +10:00
Oliver Walters
314cec5ad0
Generate default batch code for stock items
2022-04-26 20:18:33 +10:00
Matthias Mair
b118890676
Merge branch 'inventree:master' into matmair/issue2694
2022-04-23 21:30:01 +02:00
Oliver Walters
292d28d378
Account for cases where serial number could be an integer!
2022-04-22 01:00:02 +10:00
Oliver Walters
9a9ed5f192
Fix validation of duplicate IPN
...
- Duplicate IPN check does not apply if an empty IPN value is set
- Note that "if x" is a more pythonic test than "if x not in [None, '']"
2022-04-22 00:36:30 +10:00
Matthias Mair
b3dca68c6b
Merge branch 'inventree:master' into matmair/issue2694
2022-04-19 18:24:12 +02:00
Oliver Walters
5fe2fb615b
Style fixes
2022-04-19 20:41:08 +10:00
Oliver Walters
cffeb62bd1
Bug fix for StockItem.clean()
2022-04-19 20:28:13 +10:00
Oliver Walters
141f6ccbdf
Increase unit testing for StockItem API
2022-04-19 20:10:07 +10:00
Oliver Walters
2315d0cb5d
Adds ability to filter stock item tables by "tracked" status
...
- Also fixes some slight errors in the API filtering logic
2022-04-19 18:13:48 +10:00
Oliver
5f503c7e0f
PEP fxies
2022-04-19 13:16:45 +10:00
Oliver
5240c60e0b
Render part information in stock item tracking table (if provided)
2022-04-19 13:14:54 +10:00
Oliver
48170ee096
Update stock item variant conversion form to use new function
2022-04-19 13:04:17 +10:00
Oliver
87de7e4beb
Adds "convert_to_variant" function for the StockItem model
2022-04-19 12:52:36 +10:00
Oliver Walters
1cddb565da
PEP fixes
2022-04-18 23:20:59 +10:00
Oliver Walters
33401cb207
Adds ability to filter stockitem list by "has_batch" parmeter
2022-04-18 22:34:00 +10:00