2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-01 04:56:45 +00:00

260 Commits

Author SHA1 Message Date
Oliver
d8b9420d2d Add a query param `?include_pricing' to the BomItem API
- Set this to false to disable pricing info in BOM
- Drastic reduction in query speed
2021-10-08 12:47:03 +11:00
Oliver
2b13512145 Check that supplier and manufacturer parts are created 2021-08-14 10:43:45 +10:00
Oliver
26c07961cb Bug fix for API 2021-08-14 10:23:57 +10:00
Oliver Walters
ba1ba67f87 Only add company data if part is purchaseable 2021-08-14 00:46:30 +10:00
Oliver Walters
78340a71a9 Adds support for creation of ManufacturerPart and SupplierPart via the Part creation API 2021-08-14 00:38:08 +10:00
Oliver Walters
cb11df4dba Improve error checking for initial stock creation when creating a new part
- Use @transaction.atomic
- Raise proper field errors
2021-08-14 00:09:08 +10:00
Oliver Walters
0e8fb6a5ad Refactored DuplicatePart form
- API endpoint now takes care of duplication of other data
2021-08-05 00:16:42 +10:00
Oliver Walters
b04f22fc53 CreatePart form now uses the API
- Simplify the way category parameter templates are copied
2021-08-04 23:27:16 +10:00
Oliver Walters
2bf3e3ab02 Function to construct part form fields 2021-08-04 23:26:17 +10:00
Oliver
56c0e289bd Style fix 2021-08-04 12:13:24 +10:00
Oliver
f95346f214 Make the part thumbnail selection window searchable 2021-08-04 12:10:49 +10:00
eeintech
29c8daed0a 'has_ipn' filter method did not return queryset 2021-08-03 12:21:44 -04:00
Oliver
cd1ecc5e8f style fixes 2021-07-28 14:17:25 +10:00
Oliver
25ff74835d Refactor PartCategoryParameter API 2021-07-28 14:05:49 +10:00
eeintech
a6b52a9fae Fix for #1861 2021-07-26 17:02:04 -04:00
Oliver
85a40ec418 Tree exclusion for PartCategory and StockLocation 2021-07-21 21:23:30 +10:00
Oliver
bee0a519ef Allow filtering of PartList by exclude_tree 2021-07-21 21:18:01 +10:00
Oliver
5e2145e151 Bug fix - delete line which don't belong no more 2021-07-20 22:26:43 +10:00
Oliver
cb0b7209ec Add custom "list" function back in
- Actually does make a significant difference to query speed
2021-07-20 22:12:01 +10:00
Oliver
4199e7567f Remove duplicate annotation call 2021-07-20 21:46:27 +10:00
Oliver
dbe550a159 Optimizations for PartList API endpoint:
- Remove custom list() function
- Queryset prefetch now performed by the model manager
2021-07-20 21:37:32 +10:00
Oliver Walters
36cf614aed Add "level" to PartCategory serializer
- Also use tree ordering by default
2021-07-18 21:11:53 +10:00
Oliver
984e16d5af Return all part parameters to the main part edit form
- refactor purchaseorder view
- refactor salesorder view
2021-07-15 16:07:46 +10:00
Oliver
7168607a88 PEP fix 2021-07-09 13:07:01 +10:00
Oliver
079e331bf6 Add sub_part_assembly filter to BOM table 2021-07-09 13:04:48 +10:00
Oliver
0c73fa3b58 Add regex filter for part name 2021-07-09 09:11:31 +10:00
Oliver
fd5d20ad13 Fix case for filtering parts by IPN 2021-07-09 09:08:55 +10:00
Oliver
cbf0e0bd4a Refactor forms for editing and deleting a PartParameter
- PartParameters now loaded using the API, not pre-rendered
2021-07-09 01:56:04 +10:00
Oliver
f0e7826fdc Adds some more API filters for the StockItem endpoint 2021-07-08 17:44:52 +10:00
Oliver
a8a21f7c9d Transition "has IPN" filter to django-filters approach 2021-07-08 17:16:02 +10:00
Oliver
ba0a13443f PEP fixes 2021-07-08 17:02:55 +10:00
Oliver
376428b80b Add regex IPN filter for Part API 2021-07-08 17:02:45 +10:00
Oliver
20b0e399c0
Merge pull request #1716 from SchrodingersGat/drf-api-forms
[WIP] API Forms
2021-07-03 22:14:26 +10:00
23bd6acc94 changed doc string 2021-07-03 00:18:41 +02:00
54cb8fa736 adds depleted stock to index 2021-07-03 00:08:00 +02:00
Oliver
bfc5a7dcf8 Refactor forms for PartTestTemplate model:
- Remove old forms
- Remove old views
- Add detail endpoint for the API
2021-07-01 14:44:23 +10:00
Oliver
b946aedb5c Replace PartAttachmentEdit view 2021-06-30 09:49:30 +10:00
Oliver
621f47e46c Replace "edit part category" form 2021-06-30 01:04:39 +10:00
Oliver
949c7dd81b Set modal form title 2021-06-26 14:30:14 +10:00
80e47b6f76 addd in sorting for category
fixes #1689
2021-06-20 22:49:06 +02:00
0e8a97acb0 added permissions 2021-06-07 05:23:13 +02:00
0d93c96f2a adding internal price breaks as in #1606 2021-06-05 17:01:49 +02:00
Oliver Walters
9f407df15a Update BOM table display 2021-06-01 14:17:31 +10:00
Oliver Walters
0bd0e57f16 BomList can be filtered by "allow_variants" flag 2021-06-01 14:03:21 +10:00
eeintech
e9f41a8357 Currency finding fix 2021-05-14 16:38:30 -04:00
eeintech
1940fd5199 Now processing currencies 2021-05-14 16:16:23 -04:00
eeintech
68f5ec8b6a Added currency conversion 2021-05-13 17:09:52 -04:00
eeintech
f2e9f58f1b Added purchase price range and average to BOM items/view 2021-05-13 15:47:42 -04:00
f2b0717d10 removes all lines consisting only of spaces
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
eeintech
f0b44450fb Updated 'Required for Build Orders' API queryset 2021-04-27 12:48:36 -04:00