Commit Graph

2500 Commits

Author SHA1 Message Date
Oliver Walters
428b52693a Merge remote-tracking branch 'inventree/master' 2020-04-05 01:00:00 +11:00
Oliver
7c09c20725
Update version.py
Bump version number
2020-04-05 00:56:16 +11:00
Oliver
cffb921fb1
Merge pull request #694 from SchrodingersGat/thumbnail-image
Thumbnail image
2020-04-05 00:55:32 +11:00
Oliver Walters
2d3e7e35af Fix middleware due to failing tests 2020-04-05 00:46:15 +11:00
Oliver Walters
8b61acb048 PEP fixes 2020-04-05 00:38:25 +11:00
Oliver Walters
0cfb293ca9 List API now uses the thumbnail image 2020-04-05 00:19:37 +11:00
Oliver Walters
afa31b3415 Generate thumbnails for any part images existing in the database 2020-04-05 00:19:05 +11:00
Oliver Walters
d505e79be8 Allow token-based access to /media/ and /static/
- The InvenTree app needs to access the images, but currently token auth only works for the /api/ endpoint
- The app cannot use csrf tokens!
- So, borrow the tokens which are already created per-user in the DRF framework
- If a user is not authed, then check for a token!
- See InvenTree/middleware.py for further documentation
2020-04-04 23:29:05 +11:00
Oliver Walters
aee0970e49 Part image field now uses django-stdimage 2020-04-04 15:47:05 +11:00
Oliver Walters
55e831f4b4 Merge remote-tracking branch 'inventree/master' 2020-04-03 14:24:35 +11:00
Oliver
7ee94f3574
Merge pull request #692 from SchrodingersGat/api-improvements
Api improvements
2020-04-03 12:37:03 +11:00
Oliver Walters
b25df586cd Fix API tets 2020-04-03 12:30:58 +11:00
Oliver Walters
92f5648656 Fix API endpoints for Stock app 2020-04-03 12:20:43 +11:00
Oliver Walters
ccb637773f Add item count to StockLocation serializer 2020-04-03 11:41:51 +11:00
Oliver Walters
d4da6211be StockItem: filtering improvements
- Optional 'cacade' param
- Filter by null parent
2020-04-03 11:40:37 +11:00
Oliver Walters
fb94949538 Allow StockLocation filtering of null parent 2020-04-03 11:34:42 +11:00
Oliver Walters
f5150f549a Part API changes
- Allow filtering parts with null parent (top-level category parts)
- Option to include sub-category parts or not
2020-04-03 09:37:03 +11:00
Oliver Walters
6e65a736e7 Add isNull function to query against null keys 2020-04-03 09:31:26 +11:00
Oliver Walters
d17056820b Allow PartCategory filtering by null parent 2020-04-03 09:25:58 +11:00
Oliver Walters
7e8664a4dd Include "parts" count in Category API 2020-04-03 09:15:09 +11:00
Oliver Walters
aada5f91cb Merge remote-tracking branch 'inventree/master' 2020-03-31 22:15:58 +11:00
Oliver
40822a93df
Merge pull request #691 from SchrodingersGat/default-currency
auto-fill price break with default quantity
2020-03-31 22:14:10 +11:00
Oliver Walters
67a73c1fbf auto-fill price break with default quantity 2020-03-31 22:11:16 +11:00
Oliver
9d19029ba9
Merge pull request #690 from SchrodingersGat/bug-fixes
Bug fixes
2020-03-31 21:43:42 +11:00
Oliver Walters
c31b72bde2 type checking 2020-03-31 21:40:23 +11:00
Oliver Walters
6919eaa1e1 Update translations 2020-03-31 21:33:50 +11:00
Oliver Walters
124967ed31 Remove trailing zeros in part order form 2020-03-31 21:30:34 +11:00
Oliver Walters
570010b99c Change POLineItem quantity to a rounding decimal field 2020-03-31 21:23:57 +11:00
Oliver Walters
4c96b34c7c Override prepare_value method of RoundingDecimalFormField
- Remove trailing zeros in form field display
2020-03-31 21:21:39 +11:00
Oliver Walters
f07f3b99cf Remove 'notes' field from PurchaseOrder edit / create form 2020-03-31 20:48:44 +11:00
Oliver Walters
b0edd0eb05 Merge remote-tracking branch 'inventree/master' 2020-03-30 19:06:30 +11:00
Oliver
cdc4c5d6d5
Merge pull request #684 from SchrodingersGat/build-status-label-fix
Display proper build status label
2020-03-30 17:18:46 +11:00
Oliver Walters
34c097c46a Display proper build status label 2020-03-30 16:48:14 +11:00
Oliver
e28fe6df6a
Merge pull request #682 from SchrodingersGat/low-stock
"Low Stock" badge
2020-03-30 15:35:53 +11:00
Oliver Walters
0dc6d9d37e Improved visual layout 2020-03-30 15:04:56 +11:00
Oliver Walters
5aec3df7c9 Add stock-info labels to Part info page 2020-03-30 13:37:34 +11:00
Oliver Walters
06f28898a0 separate display for "no stock" and "low stock" in list view 2020-03-30 13:31:14 +11:00
Oliver Walters
e8e0ab8416 Include 'minimum_stock' information in part list api 2020-03-30 13:21:33 +11:00
Oliver Walters
5b77ff4a4c Merge remote-tracking branch 'inventree/master' 2020-03-26 18:08:34 +11:00
Oliver
00eada2c3c
Merge pull request #679 from SchrodingersGat/on-order-fix
Better filtering of annotations for Part-list API
2020-03-26 18:07:53 +11:00
Oliver Walters
c0650ba7f4 Add "buiding" icon in part list if no stock and none on order 2020-03-26 17:57:49 +11:00
Oliver Walters
713d7960a8 Fix on_order calculation
- Take into account the number "received"
- Also fix unit tests
2020-03-26 17:56:44 +11:00
Oliver Walters
6a78f6d451 Include quantity currently being build in Part API 2020-03-26 17:43:02 +11:00
Oliver Walters
41bbbdcd43 Improve query speed when calculating how many parts are on order 2020-03-26 17:31:59 +11:00
Oliver Walters
57123283f4 Better filtering of annotations for Part-list API 2020-03-26 17:08:01 +11:00
Oliver
864a21ac85
Merge pull request #678 from SchrodingersGat/on-order
Add "On Order" badge
2020-03-26 14:53:54 +11:00
Oliver Walters
99efbd4c40 If a part has no stock but is on order, display an "on-order" badge 2020-03-26 14:46:40 +11:00
Oliver Walters
dae45875fb Add 'on_order' quantity to the part list API 2020-03-26 14:46:23 +11:00
Oliver
d0f71ea6de
Merge pull request #676 from maxbachmann/master
use rapidfuzz instead of fuzzywuzzy
2020-03-23 09:18:38 +11:00
maxbachmann
b162c97226
use rapidfuzz instead of fuzzywuzzy 2020-03-22 22:31:15 +01:00