Commit Graph
100 Commits
Author SHA1 Message Date
Oliver 6347345c23 Ignore template files in common 2021-11-09 21:40:35 +11:00
Oliver 7dce9f3f3b PEP fixes 2021-11-09 21:37:54 +11:00
Oliver 476d2545ad Remove old server-side view 2021-11-09 21:33:32 +11:00
Oliver eb5b810be0 Update displayed setting when API returns success 2021-11-09 21:29:31 +11:00
Oliver 5df4374607 javascript for editing settings via API 2021-11-09 21:16:37 +11:00
Oliver 324335a620 Convert to "native value" in the serializer 2021-11-09 17:43:36 +11:00
Oliver 4433befbdc Add list of 'choices' (read only) to serializer
- Check that the specified value is one of the valid options (if provided)
2021-11-09 17:21:59 +11:00
Oliver 07851f0b2c Include 'setting type' in API data 2021-11-09 17:07:41 +11:00
Oliver 0374c27d7c Adds "detail" view for user setting
- Users can only view / edit their own settings
2021-11-09 16:14:10 +11:00
Oliver f3b4f7aa28 Add "detail" view for global settings objects
- Can view and edit (but not delete)
- User must have "staff" status to access
2021-11-09 16:07:25 +11:00
Oliver cb583eb466 Add LIST endpoint for global settngs and user settings
- Read only, cannot create new settings
- User settings filters against the user making the request
2021-11-09 15:59:09 +11:00
OliverandGitHub 6c8f04b387 Merge pull request #2274 from SchrodingersGat/po-receive-fix
Add unit test to check an "empty" (null) barcode can be supplied
2021-11-09 12:38:56 +11:00
Oliver 30684685f9 Add unit test to check an "empty" (null) barcode can be supplied 2021-11-09 12:07:57 +11:00
OliverandGitHub 1520c296dd Merge pull request #2270 from SchrodingersGat/navbar-fix
Fixes navbar menu positioning for smaller screens
2021-11-08 17:44:21 +11:00
OliverandGitHub 8fee117870 Merge pull request #2273 from SchrodingersGat/owner-filter
Adds search capability to "owner" API
2021-11-08 17:11:20 +11:00
Oliver f1eaeef949 PEP fixes 2021-11-08 16:53:43 +11:00
Oliver ca0619a482 Adds API filtering for the "user" list 2021-11-08 16:53:15 +11:00
Oliver 3d553cf7de Adds search capability to "owner" API
- Currently a bit of a hack, but it works...
2021-11-08 16:49:15 +11:00
OliverandGitHub 2c889fbcff Merge pull request #2272 from SchrodingersGat/convert-to-variant-fix
Convert to variant fix
2021-11-08 15:56:45 +11:00
OliverandGitHub 619c029d3d Merge pull request #2271 from SchrodingersGat/stock-actions-fix
Fix missing actions for stock item
2021-11-08 15:10:46 +11:00
Oliver cb075ed2c2 Fix logic for converting stock items to applicable variants 2021-11-08 15:10:41 +11:00
Oliver 64f5007d3a Fix missing actions for stock item
(cherry picked from commit c128438ebf)
2021-11-08 14:50:03 +11:00
Oliver c128438ebf Fix missing actions for stock item 2021-11-08 14:47:14 +11:00
OliverandGitHub bcc086657a Merge pull request #2269 from SchrodingersGat/bo-form
Improvements for build order forms
2021-11-08 14:28:34 +11:00
Oliver 35cfa387d1 Fixes navbar menu positioning for smaller screens 2021-11-08 13:38:03 +11:00
Oliver b2ae346343 Provide model-level default function option 2021-11-08 13:30:59 +11:00
Oliver 8d5c3ab18a add extra icons for build order form 2021-11-08 13:10:33 +11:00
OliverandGitHub 9c2193a4cc Merge pull request #2265 from matmair/matmair/issue2257
Matmair/issue2257
2021-11-08 11:10:53 +11:00
OliverandGitHub a12baadc09 Merge pull request #2266 from SchrodingersGat/login-tweaks
Login tweaks
2021-11-08 10:19:23 +11:00
OliverandGitHub 96e8c499fc Merge pull request #2262 from matmair/ui-tweaks
Small UI tweaks
2021-11-08 10:00:20 +11:00
Oliver ac97edd18b JS linting 2021-11-08 09:58:55 +11:00
Oliver c9924470ad Replace dialog messages with alerts 2021-11-08 09:44:45 +11:00
Oliver ef75838ab8 Properly display notifications when logging in 2021-11-08 09:34:57 +11:00
Oliver 079c08ef7d Tweaks to account screens css 2021-11-08 09:34:42 +11:00
OliverandGitHub 7ee5f6c71b Merge pull request #2261 from SchrodingersGat/shadow
Adds a fancy shadow
2021-11-05 14:21:14 +11:00
Oliver 42155b2e05 Adds a fancy shadow 2021-11-05 13:51:26 +11:00
OliverandGitHub 174100ed6d Merge pull request #2260 from SchrodingersGat/sales-order-reference-fix
Check if customer exists when rendering sales order template
2021-11-05 11:23:13 +11:00
Oliver 1743111613 Check if customer exists when rendering sales order template
Fixes https://github.com/inventree/InvenTree/issues/1742
2021-11-05 11:03:38 +11:00
OliverandGitHub f970255066 Merge pull request #2259 from SchrodingersGat/dialog-escapes
Allow escape key on barcode modal
2021-11-05 10:58:57 +11:00
OliverandGitHub cb990af3a9 Merge pull request #2258 from SchrodingersGat/typo-fix
Typo fix
2021-11-05 10:43:49 +11:00
Oliver 1f1cf9f9e4 Allow escape key on barcode modal 2021-11-05 10:39:03 +11:00
Oliver bf4de526ac Typo fix 2021-11-05 10:20:47 +11:00
OliverandGitHub 46fc1e19d5 Merge pull request #2254 from SchrodingersGat/docker-stable
Target production docker-compose script to inventree:stable
2021-11-05 08:15:49 +11:00
Oliver ab3acc4601 Target production docker-compose script to inventree:stable 2021-11-05 07:52:15 +11:00
OliverandGitHub 083967b156 Merge pull request #2198 from SchrodingersGat/stock-item-forms
Stock item forms
2021-11-05 07:37:33 +11:00
Oliver 185924e1f8 More linting 2021-11-05 00:35:47 +11:00
Oliver 5a0ff4c077 JS linting 2021-11-05 00:32:11 +11:00
Oliver 78ac40083a Fixes for stock api unit tests
- Remove old unit tests
- Require quantity when creating a new stock item
2021-11-05 00:27:26 +11:00
Oliver f27acde934 More fixes
- Allow stock item creation for inactive parts
- Better handling of successful stock item creation
- Disable fields rather than hiding them
2021-11-05 00:02:55 +11:00
Oliver b41dbba2b0 Correctly handle serialization of newly created stock 2021-11-04 23:18:59 +11:00
Oliver 3be4acf3ef More refactoring for notifications
- Adds default behaviour for successful stock item creation
2021-11-04 23:09:49 +11:00
OliverandGitHub ce30b852e7 Merge pull request #2252 from SchrodingersGat/hide-inactive
Add option to hide inactive parts in search preview window
2021-11-04 23:06:54 +11:00
Oliver 97326d9fb2 Display stock item owner (if applicable) 2021-11-04 22:45:11 +11:00
Oliver b65f950864 Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-04 22:40:09 +11:00
Oliver 71bb6fff50 Add option to hide inactive parts in search preview window 2021-11-04 22:25:35 +11:00
OliverandGitHub ceba5b7312 Merge pull request #2249 from SchrodingersGat/search-dropdown-fix
Fixes for search auto-complete dropdown menu
2021-11-04 17:26:12 +11:00
Oliver f0e44f0efd Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-04 17:24:30 +11:00
Oliver 76b5bc067a Fix notes field 2021-11-04 17:06:52 +11:00
Oliver 3ceb6f6ba8 Fix barcode input 2021-11-04 17:04:47 +11:00
Oliver b1598cfd10 - style fixes
- add part description as mouse-over text
2021-11-04 17:02:52 +11:00
OliverandGitHub 2130b02e7f Merge pull request #2193 from matmair/matmair/issue2181
Add missing part import fields
2021-11-04 16:54:30 +11:00
OliverandGitHub 345bccb9bc Merge pull request #2248 from SchrodingersGat/email-fixes
Fixes for low-stock emails
2021-11-04 16:48:28 +11:00
Oliver 9cfcb6579f Fixes for search auto-complete dropdown menu
- Fix rendering of badges
- Menu fills out right-to-left
2021-11-04 16:48:24 +11:00
Oliver 39d3a127e1 Template improvements 2021-11-04 16:19:57 +11:00
Oliver 3a7f8c9196 Fix comparison operator 2021-11-04 16:18:49 +11:00
Oliver 75d7530e30 Fix missing tag in template 2021-11-04 16:17:05 +11:00
Oliver 5ae6241083 Fixes for low-stock emails
- Include variant stock in test
- Improve email template
2021-11-04 16:15:11 +11:00
OliverandGitHub 3b052e6bce Merge pull request #2247 from SchrodingersGat/tree-view-fixes
Fix for tree-view
2021-11-04 15:30:07 +11:00
OliverandGitHub 170d8d11d3 Merge pull request #2246 from SchrodingersGat/build-order-notification
Build order notification
2021-11-04 15:23:39 +11:00
Oliver 47f6a8266d Fix for tree-view
- Force "cascade" to be set
2021-11-04 15:08:22 +11:00
Oliver 42a794e8e4 Fix CI errors 2021-11-04 15:05:54 +11:00
Oliver 01191d84c5 Only run check stock function when updating an existing part 2021-11-04 14:32:42 +11:00
Oliver 99b324d1ef Add a post-save hook the "Build" model to check stock 2021-11-04 14:30:23 +11:00
Oliver 6db6a70fc2 Add task to check required stock for build order 2021-11-04 13:32:14 +11:00
OliverandGitHub 5cd2a14314 Merge pull request #2245 from SchrodingersGat/bom-export-fix
Refactored bom export
2021-11-04 12:28:01 +11:00
Oliver 9dba3c3f10 Refactored bom export 2021-11-04 12:10:36 +11:00
Oliver be543ca3da Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-04 10:57:40 +11:00
OliverandGitHub 8025dab69b Merge pull request #2244 from SchrodingersGat/notification-fox
Fix for missing template file
2021-11-04 10:56:48 +11:00
Oliver 3b56895f4d Merge branch 'master' into stock-item-forms 2021-11-04 10:34:49 +11:00
Oliver b279317f89 Button style fixes 2021-11-04 10:24:47 +11:00
Oliver 4118f98d4d Display more errors 2021-11-04 10:17:38 +11:00
Oliver b6d48cab2a Make further use of notification messages 2021-11-04 10:14:01 +11:00
Oliver df30a85c03 More fixes:
- Add "back to site" button on logout screen
- Add favicon to account pages
- Refactor notifications / alerts / caching
2021-11-04 09:59:56 +11:00
OliverandGitHub 7aacd8b36c Merge pull request #2242 from matmair/patch-1
Small fixes for bug report template
2021-11-04 09:57:27 +11:00
Oliver 4e7825df13 Fix javascript issues on login screens 2021-11-04 09:26:32 +11:00
Oliver d4a8f5823c Fix for missing template file 2021-11-04 09:13:13 +11:00
OliverandGitHub 0e2e6211b6 Merge pull request #2233 from SchrodingersGat/subscription-refactor
Refactor "star" functionality for part model
2021-11-04 09:05:03 +11:00
Oliver 52242e7a00 Catch error 2021-11-04 08:40:38 +11:00
Oliver 3a61d11f5a Adds a scheduled task to remove old notification entries from the database 2021-11-04 01:33:26 +11:00
Oliver 6c724556f1 PEP fixes 2021-11-04 01:21:08 +11:00
Oliver a447e22108 Prevent low-stock notifications from overwhelming users
- Limit to once per day, per part
2021-11-04 01:18:00 +11:00
Oliver bebf368d06 Add functionality and unit testing for new model 2021-11-04 01:11:42 +11:00
Oliver 1f7676ee65 Add admin entry for new model 2021-11-04 01:06:57 +11:00
Oliver e7b93a54d8 Add new model "NotificationEntry"
- Keep track of past notifications
2021-11-04 00:55:43 +11:00
Oliver ef2307aeaa Add new model to permissions table 2021-11-04 00:46:23 +11:00
Oliver 5542532223 Template tweaks 2021-11-04 00:44:16 +11:00
Oliver ee7c3ae066 Update index page 2021-11-04 00:38:34 +11:00
Oliver 476a1342c1 Improve notification of 'low stock' parts:
- Traverse up the variant tree
- Enable subscription by "category"
2021-11-04 00:28:10 +11:00
Oliver 1c6eb41341 Ability to toggle part category "star" status via the API 2021-11-04 00:01:52 +11:00
Oliver 193d6b334c Add option to display "starred categories" on the index page 2021-11-03 23:29:36 +11:00