2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 19:20:55 +00:00
Commit Graph

1503 Commits

Author SHA1 Message Date
4d8836378b CI updates (#3087)
* Add pre-commit to the stack

* exclude static

* Add locales to excludes

* fix style errors

* rename pipeline steps

* also wait on precommit

* make template matching simpler

* Use the same code for python setup everywhere

* use step and cache for python setup

* move regular settings up into general envs

* just use full update

* Use invoke instead of static references

* make setup actions more similar

* use python3

* refactor names to be similar

* fix runner version

* fix references

* remove incidential change

* use matrix for os

* Github can't do this right now

* ignore docstyle errors

* Add seperate docstring test

* update flake call

* do not fail on docstring

* refactor setup into workflow

* update reference

* switch to action

* resturcture

* add bash statements

* remove os from cache

* update input checks

* make code cleaner

* fix boolean

* no relative paths

* install wheel by python

* switch to install

* revert back to simple wheel

* refactor import export tests

* move setup keys back to not disturbe tests

* remove docstyle till that is fixed

* update references

* continue on error

* use relativ action references

* Change step / job docstrings
2022-05-28 10:38:12 +10:00
09a4fab0d6 Adds 'quarantine' code for StockItemStatus (#3084)
* Adds 'quarantine' code for StockItemStatus

- Marks item as "unavailable"
- Removes unused code from StockItemStatus class

* Add migration file
2022-05-27 15:12:15 +10:00
2d1776a151 Refactor 'DeleteManufacturerPart' form (#3067)
* Refactor 'DeleteManufacturerPart' form

- Remove duplicated forms
- Update style to match other forms
- Block on each deletion before progressing to the next one

* PEP fix

* Adds deleteSupplierParts function

* Refactor all instances of supplier part deletion

* Refactor tractor : use convenience function for bootstraptable.getSelections

* Add deleter for manufacturerpartparameter.

Refactor existing code into a single function

* Refactor deletion for stock items

* JS linting
2022-05-25 23:35:53 +10:00
ea9f2f81f1 Stock available (#3057)
* Fix display of stock labels

- If 'shipped' or 'installed', don't display 'allocated' flag

* Switch stock item data around

* Add 'available' and 'allocation' information to the StockItem detail page

- Cache some context data to the view renderer

* Stock table now also displays allocation informatoin
2022-05-24 15:35:04 +10:00
5805685c48 Merge branch 'master' of https://github.com/inventree/InvenTree into style-fixes 2022-05-21 23:57:41 +02:00
a148dbf303 refactor 'all' role 2022-05-20 17:43:51 +02:00
e1d22f538d resort imports 2022-05-20 17:24:51 +02:00
74726f0fda fix endline 2022-05-20 13:35:07 +02:00
93b6934127 fix trailing 2022-05-20 13:20:55 +02:00
9f922f06ff fix more imports 2022-05-20 12:53:04 +02:00
e8287f02d4 rename 2022-05-20 12:33:51 +02:00
3a1996dd48 PEP fix 2022-05-20 12:32:25 +02:00
0d5dea3e6d refactor test setup 2022-05-20 12:12:32 +02:00
aa3a86f372 Exclude metadata from StockLocation and StockItem model resource class 2022-05-18 21:33:40 +10:00
9bcbaaa5f5 Remove more python2 stuff 2022-05-17 16:57:31 +10:00
cce3d3a35d make imports on function level 2022-05-16 18:01:16 +02:00
2df049fe05 Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue3005 2022-05-16 17:48:01 +02:00
0f5c03e44c use direct import instead of text for offload 2022-05-16 17:45:51 +02:00
c51f052f25 Merge pull request #3011 from matmair/matmair/issue2996
Remove python 2 code
2022-05-17 00:51:31 +10:00
042cb021de Merge pull request #2957 from SchrodingersGat/locate-mixin
Adds plugin mixin to "locate" items
2022-05-16 22:57:20 +10:00
bd17458f37 Add metadata endpoints for SalesOrder and PurchaseOrder models 2022-05-16 21:40:10 +10:00
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
ecccfbd546 Remove encoding header
Fixes #2996
2022-05-15 20:33:00 +02:00
136d642703 Merge branch 'fix-boolean' of https://github.com/matmair/InvenTree into fix-boolean 2022-05-15 17:52:34 +02:00
77aeecf23a make operators simpler 2022-05-15 17:52:23 +02:00
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
40513c556d Remove locate button from top-level stock location 2022-05-16 00:10:50 +10:00
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
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
a77d4b97b4 Refactor stock_list endpoint to use the new mixin 2022-05-12 11:29:33 +10:00
db018af0ce Prevent some model based events from triggering during data import 2022-05-10 13:43:16 +10:00
a17ea3ac10 Change "identify" to "locate" for consistency with the app 2022-05-10 08:31:40 +10:00
35fbb910e8 Enable button for locating a StockLocation 2022-05-09 23:45:29 +10:00
57f3efe758 Adds an endpoint for calling the plugin code to "locate" something 2022-05-09 23:42:28 +10:00
4704db5183 Adds 'locate item' and 'locate location' buttons 2022-05-09 22:48:26 +10:00
06e79ee91b Move view mixin to plugin.views 2022-05-07 22:34:03 +10:00
60f799c90a Add plugin view support for most of the remaining views 2022-05-06 23:32:42 +10:00
1dee578907 Merge pull request #2931 from SchrodingersGat/more-api-functionality
Converting more forms to the API
2022-05-04 23:24:28 +10:00
82541ede32 More unit tests
- BuildOrderCancel
- StockItemInstall
- StockItemUninstall
2022-05-04 22:49:21 +10:00
1cefdfc2e4 PEP style fixes 2022-05-04 17:31:44 +10:00
adbcd68fe8 Refactor "uninstall stock item" form to use the API 2022-05-04 17:25:24 +10:00
5cf30a850d Prune a lot of dead code 2022-05-04 17:01:19 +10:00
e7b189ba29 fix templates 2022-05-02 22:41:24 +02:00
de6507e918 update translation commands 2022-05-01 22:03:49 +02:00
67ab45bdee update depreciated paths 2022-05-01 22:00:18 +02:00
d05472b30c upgrade to pyhton 3.9 syntax
using pyupgrade
2022-05-01 21:53:12 +02:00
e75daec695 Merge branch 'inventree:master' into matmair/issue2694 2022-04-30 19:50:25 +02:00
0bda9c974e PEP fixes 2022-04-29 01:35:09 +10:00
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
dfd51174cb Merge branch 'inventree:master' into matmair/issue2694 2022-04-27 17:48:19 +02:00