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

2069 Commits

Author SHA1 Message Date
Oliver
cef09acd54 Partial reversion of some stuff 2021-08-15 12:05:53 +10:00
Oliver
faab1f2464 Provide global_settings and user_settings as context objects
- Adds a new context middleware
- Refactor the way that settings are provided to the javascript layer
2021-08-15 11:57:05 +10:00
Oliver
2b13512145 Check that supplier and manufacturer parts are created 2021-08-14 10:43:45 +10:00
Oliver
6fa4e33062 Unit testing for new API form features 2021-08-14 10:39:05 +10:00
Oliver
26c07961cb Bug fix for API 2021-08-14 10:23:57 +10:00
Matthias
00d4efb920
PEP fix 2021-08-13 17:54:17 +02:00
Matthias
f0325fe30f
view BOMpricing range
Closes #1889
2021-08-13 17:50:41 +02:00
Matthias
a2ffd06abf
calculate purchase price for part 2021-08-13 17:49:58 +02: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
5b42ab7332 Add "groups" to API forms 2021-08-13 21:48:48 +10:00
Oliver
26ddd36666 PEP fixes 2021-08-12 23:47:42 +10:00
Oliver
537573d0e3 Add extra unit testing for BOM export 2021-08-12 23:40:07 +10:00
Oliver
46fa60953d Refactor part page 2021-08-11 00:12:55 +10:00
Oliver
6620d34f25
Merge pull request #1913 from eeintech/bom_upload
BOM upload templates fixes
2021-08-10 09:11:25 +10:00
Matthias
ad656b7ca7
extending API to supply price wihtout formatting 2021-08-09 01:49:55 +02:00
Oliver
5448165ef3
Merge pull request #1920 from SchrodingersGat/label-print-options
Label print options
2021-08-07 22:27:34 +10:00
Oliver Walters
ca9536f687 Implement option to display labels "inline" in the browser 2021-08-07 22:09:15 +10:00
Oliver Walters
24638a7229 Add migration file 2021-08-07 21:41:45 +10:00
Oliver Walters
6d42cfab75 Add model validator to prevent illegal names for PartParameterTemplate
(cherry picked from commit 93805a87e011b45a446b1faeae6ab80257420879)
2021-08-07 21:23:52 +10:00
eeintech
6280ed1ade Moved enableNavbar to part_base template 2021-08-06 11:15:16 -04:00
eeintech
1eb8a9f310 BOM upload templates fixes 2021-08-05 17:39:08 -04:00
Matthias Mair
96378cb556
Merge branch 'inventree:master' into trans-improv 2021-08-05 08:17:21 +02:00
Matthias
d6c6cb96ba
make keyvalue non-existing key tolerant 2021-08-05 01:24:49 +02:00
Oliver Walters
c7712d4235 even more unit tests 2021-08-05 01:13:48 +10:00
Oliver Walters
655e5692e9 More unit test fixes 2021-08-05 00:58:07 +10:00
Oliver Walters
6acff2a26e Fixes unit test 2021-08-05 00:40:02 +10:00
Oliver Walters
aaf394ca7a PEP fixes 2021-08-05 00:26:21 +10:00
Oliver Walters
dd78464a74 remove unused function 2021-08-05 00:25:47 +10:00
Oliver Walters
aa4ed9feb0 Refactor MakeVariant form
- Now is essentially identical to the DuplicatePart form
- Uses the API form structure
2021-08-05 00:24:38 +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 Walters
2e8a490ca9 Fixes for unit tests 2021-08-04 17:41:47 +10:00
Oliver Walters
75a1be0284 Use API forms for creating and editing BomItem objects 2021-08-04 17:25:51 +10:00
Oliver
7911801dbf
Merge pull request #1900 from SchrodingersGat/part-image-search
Make the part thumbnail selection window searchable
2021-08-04 12:28:52 +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
Oliver
989983bdb5 Fixed missing import 2021-08-04 11:37:59 +10:00
Oliver
83d8226ad6 Refactor "CreatePartCategory" form to API
(cherry picked from commit 06ff961564cdbece29ea52f4e681c079d98bcec8)
2021-08-04 11:34:42 +10:00
Oliver
8daf601f00
Merge pull request #1897 from matmair/price-terms
updating language to be clearer
2021-08-04 09:03:13 +10:00
fa3c5ae108 updating language to be clearer
see https://github.com/inventree/InvenTree/issues/1889#issuecomment-891901070
2021-08-04 00:45:56 +02:00
eeintech
29c8daed0a 'has_ipn' filter method did not return queryset 2021-08-03 12:21:44 -04:00
eeintech
634e5e0da6 Added toggle for part details
Added persistence for page refresh or new part page
2021-07-30 14:55:12 -04:00
eeintech
20b21a2b71 Merge branch 'master' of github.com:inventree/InvenTree into part_main_details 2021-07-30 10:50:28 -04:00
Oliver
4381a16b0e Template cleanup 2021-07-29 12:31:07 +10:00
Oliver
27ec65a002 Add 'settings.js' which provides all settings (global and user) as a dynamic javascript file
- Minimal database hits required
2021-07-29 11:28:04 +10: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