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

914 Commits

Author SHA1 Message Date
Oliver
1998dabe9b Small tweaks here and there 2021-08-15 21:47:37 +10:00
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
28bccea57b Cleanup 2021-08-14 13:43:38 +10:00
Oliver
f753e11f10 Improve error notification for modal forms
- Scroll to error
- Add red border and background to the form
2021-08-14 13:41:19 +10:00
Oliver
f72eb4266a remove old debug message 2021-08-14 12:31:22 +10:00
Oliver
6eb4709658 Adds initial stock quantity 2021-08-14 10:23:42 +10:00
Oliver Walters
2be9399d2c CSS style fixes 2021-08-14 01:15:43 +10:00
Oliver Walters
ad844c4393 Simplify rendering of checkboxes in forms
- Display "inline" so they take up much less vertical space
2021-08-14 01:05:06 +10:00
Oliver Walters
6218f1c7e6 Add form elements for initializing a part with supplier data 2021-08-14 00:26:22 +10:00
Oliver Walters
5cbb67b91c Add options to show / hide form groups 2021-08-14 00:20:34 +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
1396c349c8 Refactor form field definition copying 2021-08-14 00:08:26 +10:00
Oliver Walters
5b42ab7332 Add "groups" to API forms 2021-08-13 21:48:48 +10:00
eeintech
91e314ddb5 Only connect ManufacturerPart if a. it exists b. SupplierPart is not yet connected 2021-08-11 17:08:46 -04:00
Oliver
2cf7592198
Merge pull request #1941 from SchrodingersGat/lazy-loading
Adds one-shot function when a panel is displayed
2021-08-11 00:29:06 +10:00
Oliver
68282c93f4 Start API calls before the panel has finished loading 2021-08-11 00:12:48 +10:00
Oliver
a1922bff81 Adds one-shot function when a panel is displayed 2021-08-11 00:09:01 +10:00
Oliver
b94104f7ab
Merge pull request #1940 from SchrodingersGat/stock-table-fix
Bug fix for stock table
2021-08-10 23:52:55 +10:00
Oliver
535c36b75e Bug fix for stock table
- Use the provided table name, rather than hard-coded value

(cherry picked from commit b3a52dd6c65a83f2f330c0275b443e9acbcbdf73)
2021-08-10 23:31:20 +10:00
Oliver
4c8eaf3942 Bug fix for stock transfer form 2021-08-10 23:23:02 +10:00
Oliver
c32b6b2272 Hide the "part" field when editing manufacturer part and supplier part objects 2021-08-10 11:01:17 +10:00
Matthias
ad656b7ca7
extending API to supply price wihtout formatting 2021-08-09 01:49:55 +02:00
Matthias
c58ed5a07e
Fixes #1915 2021-08-09 01:43:50 +02:00
Oliver Walters
e3efd12184 secondary for purcahse order 2021-08-08 00:50:59 +10:00
Oliver Walters
52ba2201b2 secondary for creating sales order customers 2021-08-08 00:49:16 +10:00
Oliver Walters
4e6c8c45ee secondary modal for part form 2021-08-08 00:44:46 +10:00
Oliver Walters
1dc5682767 bug fix 2021-08-08 00:44:30 +10:00
Oliver Walters
720b332f71 Adds secondary to manufacturerpart form 2021-08-07 23:49:50 +10:00
Oliver Walters
94c1ed882f Add secondary field options for "Create Supplier Part" form
- Supplier
- Manufacturer Part
2021-08-07 23:42:42 +10:00
Oliver Walters
b960ce839a remove debug statement 2021-08-07 23:31:21 +10:00
Oliver Walters
fd917b2e41 Simple refactoring 2021-08-07 23:30:53 +10:00
Oliver Walters
25af8559ba Back-fill newly created model data into the parent modal form 2021-08-07 23:27:31 +10:00
Oliver Walters
759a3724b5 Add function to extract all data from a displayed form 2021-08-07 23:09:56 +10:00
Oliver
be67832821
Merge pull request #1908 from eeintech/fix_typo
Fixed typo for build responsible column header
2021-08-05 08:14:51 +10:00
eeintech
c0ccb8f588 Fixed typo for build responsible column header 2021-08-04 17:11:35 -04: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
2cb0b448b7 Fix error message styles for API errors
- django ValidationError uses "__all__" key for non_field_errors
- whyyyyyyyyyyyy
2021-08-05 00:15:55 +10:00
Oliver Walters
408ff639dd Adds ability to pre-fill a form with a complete dataset 2021-08-04 23:48:21 +10:00
Oliver Walters
1fafaf8577 Refactor partfields function (was essentially duplicated) 2021-08-04 23:29:39 +10:00
Oliver Walters
2bf3e3ab02 Function to construct part form fields 2021-08-04 23:26:17 +10:00
Oliver Walters
a64ee23afc Add more options for form rendering
- "before" a field
- "after" a field
- pure "eye candy" field
2021-08-04 23:16:11 +10:00
Oliver Walters
75a1be0284 Use API forms for creating and editing BomItem objects 2021-08-04 17:25:51 +10:00
Oliver
1f70538b04 Adds a button to tables to reload data 2021-08-04 14:24:17 +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
f95346f214 Make the part thumbnail selection window searchable 2021-08-04 12:10:49 +10:00
Oliver
83d8226ad6 Refactor "CreatePartCategory" form to API
(cherry picked from commit 06ff961564cdbece29ea52f4e681c079d98bcec8)
2021-08-04 11:34:42 +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
55762f2a96 do not use safe in template
that can cause wrong escaping and generally is considered unsafe
2021-08-01 01:41:46 +02:00