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
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
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
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
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
Oliver
7567b8dd63
MOAR FEATURES:
...
- Add admin view for PartCategoryStar
- Add starred status to partcategory API
- Can filter by "starred" status
- Rename internal functions back to using "starred" (front-end now uses the term "subscribe")
2021-11-03 23:22:31 +11:00
Oliver
f9a00b7a90
Adds extra subsctiption functionality for Part and PartCategory
...
- Allows variants and templates
- Allows categories and sub-categories
- Unit testing
2021-11-03 22:57:49 +11:00
Oliver
cf023e2cc1
Create new model for "PartCategory"
2021-11-03 18:10:34 +11:00
Oliver
4cf6b9bd31
Remove old function
2021-11-03 17:59:08 +11:00
Oliver
e7f6268640
Improvements for alert notifications
...
- Dismissable
- Delete after a certain amount of time
2021-11-03 17:55:30 +11:00
Oliver
85adf842f6
Change bullhorn icon to bell icon
2021-11-03 16:59:59 +11:00
Oliver
63ec5770f4
Merge remote-tracking branch 'inventree/master' into subscription-refactor
2021-11-03 16:55:54 +11:00
Oliver
e5435df2ba
Merge remote-tracking branch 'inventree/master' into stock-item-forms
2021-11-03 15:46:30 +11:00
Oliver
74521b7628
Merge pull request #2239 from SchrodingersGat/more-part-details
...
Add more information to the "part details" tab
2021-11-03 14:18:43 +11:00
Oliver
31ea71d391
Display part category
2021-11-03 14:00:13 +11:00
Oliver
d435689562
Add more information to the "part details" tab
2021-11-03 13:57:50 +11:00
Oliver
ecccae1081
Merge remote-tracking branch 'inventree/master' into stock-item-forms
2021-11-03 13:34:45 +11:00
Oliver
08ffa102c6
Fixes for part category table
...
(cherry picked from commit f7ef309995f8a52c213748f4a9226724e288c936)
2021-11-03 13:34:01 +11:00
Oliver
c4ea3ecf6f
Bug fix for stock location table
...
(cherry picked from commit 44794d7b78520023e3b70da61dc13938bfd4bd14)
2021-11-03 13:33:57 +11:00
Oliver
08719d4d1b
Merge pull request #2236 from SchrodingersGat/badge-fix
...
Fix CSS for user badges
2021-11-03 12:41:10 +11:00
Oliver
b1c23e30f5
Fix CSS for user badges
2021-11-03 11:59:20 +11:00
Oliver
c636f13ba8
Template fix for BOM upload
2021-11-03 11:44:42 +11:00
Oliver
1d42d33c8e
style fixes
2021-11-03 11:33:44 +11:00
Oliver
be7b224f14
Adds API endpoint for serialization of stock items
2021-11-03 10:12:42 +11:00
Nigel
eecd477a34
Add redis cache to postgres testcase
2021-11-02 16:37:31 -06:00
Nigel
e8c2d4da10
Add support for using redis as a cache and a broker
2021-11-02 16:37:28 -06:00
Oliver
2b69d9c2af
Correctly serialize stock when creating via the API
2021-11-03 07:41:47 +11:00
Oliver
ad4c4f2a6d
Stock item duplication now works with the API forms
2021-11-03 07:28:21 +11:00
Oliver
aaf27d4098
Adds new buttons to create a new stock item
2021-11-03 07:27:58 +11:00
Oliver
d8e3c40f78
Implementing more complex behaviour for StockItem creation form
2021-11-02 23:04:10 +11:00
Oliver
ef305032c9
Create new stock location via API forms
2021-11-02 20:04:54 +11:00
Oliver
0d9c08b49c
StockLocationEdit
2021-11-02 19:58:25 +11:00
Oliver
4c8bc9580c
stock-item-edit is looking OK now
2021-11-02 19:51:46 +11:00
Oliver
d357e982f5
Revert stock-item detail template to mater
2021-11-02 19:43:17 +11:00
Oliver
c3c4aca829
Fix action buttons for stock-item detail page
2021-11-02 19:29:26 +11:00
Oliver
8725837460
Merge remote-tracking branch 'inventree/master' into stock-item-forms
2021-11-02 19:25:11 +11:00
Oliver
4bfdf21107
Change "star" icon to "bullhorn" icon
2021-11-02 15:07:20 +11:00
Oliver
1dea7861d0
Refactor email body out into a template
...
- Will be useful in the future when more email functionality is implemented
2021-11-02 14:43:57 +11:00
Oliver
e3dfb6cbc8
Improve messaging
2021-11-02 13:08:10 +11:00
Oliver
a3889c709e
More tweaks
2021-11-02 12:57:40 +11:00
Oliver
fc9ca5e481
Pretty badges for email accounts
2021-11-02 12:54:41 +11:00
Oliver
ec147ea25f
Further work on email settings page
2021-11-02 12:49:44 +11:00
Oliver
d1f2d960be
Refactor "user account" page
2021-11-02 12:15:46 +11:00
Oliver
489d085de8
Refactor "category" settings page
2021-11-02 11:32:57 +11:00
Oliver
66b078e4b9
Refactor part settings page
2021-11-02 11:31:24 +11:00
Oliver
2abcb114a8
Visual improvements for "currency" page
2021-11-02 11:28:46 +11:00
Oliver
6f9ac4a850
- Fixes for construct_absolute_url function
...
- Refactor notification email generation
- Update template file
- Add separate templates folder for email
2021-11-02 00:40:25 +11:00
Oliver
dabaa9aea5
Adds a function to construct an "absolute" URL
...
Useful for providing an external link (e.g. in an email)
2021-11-01 23:44:44 +11:00
Oliver
9cbc2b82b5
Merge pull request #2208 from rocheparadox/master
...
Email notification for low stock
2021-11-01 22:45:49 +11:00
Matthias
33d61d8cb5
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue2181
2021-11-01 12:31:35 +01:00
Oliver
a1608396cd
Expand navbar spacer
2021-11-01 14:16:14 +11:00
rocheparadox
76c1e936db
Added post_delete hook to StockItem
...
moved the business logic of 'deciding if a low stock notification has to be sent' to part.tasks
2021-11-01 08:25:59 +05:30
Oliver
2662ba1202
Merge branch 'master' into stock-item-forms
2021-11-01 12:43:32 +11:00
Oliver
f607841601
Fix navbar spacing when "sticky-header" is enabled
2021-11-01 12:07:07 +11:00
Oliver
ad0277a8c3
Merge branch 'master' into stock-item-forms
...
# Conflicts:
# InvenTree/stock/serializers.py
# InvenTree/stock/templates/stock/item_base.html
2021-11-01 12:00:40 +11:00
Oliver
94a86e52f8
Merge pull request #2224 from matmair/remove-breadrcumb-space
...
remove breadcrub div where no breadcrumb is added
2021-11-01 11:57:21 +11:00
Matthias Mair
05a86c863f
Update page_base.html
2021-11-01 01:38:21 +01:00
Oliver
b64f0e1f54
Merge pull request #2222 from matmair/ui-navbar
...
UI tweaks
2021-11-01 11:30:27 +11:00
Matthias
338e85ff52
remove breadcrub div where no breadcrumb
2021-11-01 01:09:08 +01:00
Matthias
9a346dd3e2
Revert "remove breadcrub div where no breadcrumb"
...
This reverts commit 2c9b03944f
.
2021-11-01 01:07:13 +01:00
Matthias Mair
c775d030f9
Merge branch 'inventree:master' into matmair/issue2181
2021-11-01 01:06:18 +01:00
Matthias
8da2865299
setting sidebar header different color to items
2021-11-01 00:11:01 +01:00
Matthias
62aa014f6b
add button for navbar toogle
2021-11-01 00:09:38 +01:00
Matthias
2c9b03944f
remove breadcrub div where no breadcrumb
2021-11-01 00:08:39 +01:00
Matthias
f0a558c1e2
remove unneeded spacing
2021-11-01 00:06:08 +01:00
Oliver
80e741fe1b
Further improvements for filter elements
2021-11-01 09:21:42 +11:00
Oliver
1f537a50b2
Fix weird height issue for filter tag
2021-11-01 09:11:08 +11:00
Matthias Mair
037f2a9438
Merge branch 'inventree:master' into matmair/issue2181
2021-10-31 23:04:55 +01:00
Oliver
360f0406b5
CSS updates
...
- Add template for filter lists
- Filter lists now layout horizontally
- Change flex-row to flex-wrap
2021-11-01 08:38:24 +11:00
rocheparadox
60c2aab06d
remove unused imports
2021-10-31 11:30:14 +05:30
rocheparadox
40da41959b
Created part.tasks file and moved notify_low_stock function to the same from InvenTree.tasks. The argument type is changed from StockItem to Part
...
Added trans to headers of table in email template of low_stock_notification.html
added is_part_low_on_stock() function to the part model to check if the part's stock has fallen below the minimum quantity
used offload_task function to run the low stock notification function asynchronously
2021-10-31 11:26:41 +05:30
rocheparadox
fca15a0439
added arbitrary args and arbitrary keyword args while executing a function synchronously from offload_task() in inventree.tasks
2021-10-31 11:21:06 +05:30
Oliver
9057462588
Merge pull request #2212 from matmair/matmair/issue2210
...
Fix for actions wrapping on smaller screens
2021-10-31 09:09:27 +11:00
Matthias Mair
20a129f396
Merge branch 'inventree:master' into matmair/issue2181
2021-10-30 17:24:03 +02:00
Matthias Mair
6ce10736af
Merge branch 'inventree:master' into matmair/issue2210
2021-10-30 17:23:55 +02:00
Matthias Mair
108f715ef6
Merge branch 'inventree:master' into matmair/issue2213
2021-10-30 17:23:51 +02:00
rocheparadox
6ec2801fce
Facilitated translation for low stock notification subject
...
moved the message/content of low stock notification to html template
Facilitated translation in low stock notification html template file
2021-10-30 20:32:10 +05:30
Matthias Mair
14680531f0
[BUG] Auth screens broken
...
Fixes #2213
2021-10-30 14:05:40 +00:00
Oliver
a151a68e58
convert sale_price to string before exporting
2021-10-31 00:05:20 +11:00
Matthias Mair
6af866557d
fixes missing wraping on iPdas and iPhones
...
Fixes #2210
2021-10-30 12:34:31 +00:00
Oliver
2bbeab38ff
Merge pull request #2205 from SchrodingersGat/bootstrap-5
...
Bootstrap 5
2021-10-30 23:03:12 +11:00
Oliver
75c8faa09f
Tweaks
2021-10-30 22:30:04 +11:00
Oliver
638c9d4007
Enable bootstrap-5 theme for select2
2021-10-30 22:16:40 +11:00
Oliver
2830fc3c7f
Fixes
2021-10-30 14:11:03 +11:00
rocheparadox
e0cd02ee60
added dispatch_uid to post_save signal of StockItem
2021-10-30 08:30:39 +05:30
rocheparadox
83309fd054
Fixed the order of fixtures installation for testing
2021-10-30 08:16:42 +05:30
rocheparadox
f2207cc6f8
Merge remote-tracking branch 'upstream/master'
2021-10-30 08:14:53 +05:30
Oliver
29c913b553
Improvements for stock item test result table
2021-10-30 13:31:13 +11:00
Oliver
79434bb4e0
Handle missing report template
2021-10-30 13:28:08 +11:00
Oliver
a689b77cfb
More tweaks
2021-10-30 13:18:11 +11:00
Oliver
c4c533bee0
JS linting
2021-10-30 13:03:52 +11:00
Oliver
c2a8cfd183
PEP style fixes
2021-10-30 12:57:49 +11:00
Oliver
8e1d9c281a
Adds tree view for stock locations
2021-10-30 12:53:25 +11:00
Oliver
be23634c5d
Refactor display toggle for part list and part category list
2021-10-30 12:45:07 +11:00
Oliver
3bd59728db
CSS tweaks
2021-10-30 08:59:40 +11:00
Oliver
fcc1e9fe8f
Fixes
2021-10-30 01:00:37 +11:00
Oliver
4eea8c8193
Remove old tree classes
2021-10-30 00:18:41 +11:00
Oliver
a792903a79
Catch sidebar error
2021-10-30 00:15:19 +11:00
Oliver
a15cc1f3ba
linting fixes
2021-10-30 00:07:51 +11:00
Oliver
57240865e8
More tweaking
2021-10-30 00:05:32 +11:00
Oliver
25a5d8de78
Improve visual style of breadcrumbs
2021-10-29 23:28:19 +11:00
Oliver
3849ea8057
Rearranging buttons
2021-10-29 23:20:09 +11:00
Oliver
c04118ed8a
Driving the refactor tractor around the farm
2021-10-29 22:20:06 +11:00
rocheparadox
d8796f9535
Notify users who have starred a part when that part's stock quantity falls below the minimum quanitity/threshold through email.
2021-10-29 16:03:41 +05:30
Oliver
b41d1aed12
Refactor admin button for:
...
- build order
- part detail
- stock item
- stock location
- company detail
- manufacturer-part
- purchase order
- sales order
2021-10-29 17:07:35 +11:00
Oliver
8afa39cd91
Refactor "search" page
2021-10-29 13:54:46 +11:00
Oliver
0f10936e65
Refactored index page
...
- Looks MUCH nicer now!
2021-10-29 13:28:21 +11:00
Oliver
6a3c9ead17
Add option to disable "toggle" for sidebar
2021-10-29 11:48:46 +11:00
Oliver
890fd0f1a0
Remove nav tree
2021-10-29 10:54:15 +11:00
Matthias Mair
6e486140c3
Merge branch 'inventree:master' into matmair/issue2181
2021-10-29 00:21:11 +02:00
Nigel
de90020c0f
Set some sensible options
...
Including normalilzing the transaction isolation level and setting some
reasonable tcp timeouts for postgres
2021-10-28 14:19:46 -06:00
Oliver
80a41affc1
More sidebar action
2021-10-29 01:20:24 +11:00
Oliver
1b5428718e
Refactored sidebar for "purchase order"
2021-10-29 01:11:00 +11:00
Oliver
00a0311c63
Refactor sidebar for "sales order" page
2021-10-29 01:08:18 +11:00
Oliver
5a2c20ea55
Refactor sidebar for "company" display
2021-10-29 01:05:39 +11:00
Oliver
613b135edf
Refactor sidebar for "build order" display
2021-10-29 01:00:39 +11:00
Oliver
ec2e06fa15
Refactor sidebar for "settings" window
2021-10-29 00:55:22 +11:00
Oliver
5f139b4aa4
Refactor sidebar for "location" display
2021-10-29 00:43:58 +11:00
Oliver
e0d3facfac
Refactor sidebar for "stock item" page
2021-10-29 00:40:16 +11:00
Oliver
59acf45ab9
Implement sidebar for "part category" display
2021-10-29 00:29:09 +11:00
Oliver
f0fe7f2d5c
Complete refactoring of part sidebar
2021-10-29 00:20:39 +11:00
Oliver
f542bdc19f
badge updates
2021-10-28 22:32:03 +11:00
Oliver
2778ff55da
Remove btn-default
2021-10-28 19:57:17 +11:00
Oliver
b1cdcdf0b8
More fixes
...
- About modal
- Server-side modals
- icon badges
- checkboxes in API forms
2021-10-28 19:41:46 +11:00
Oliver
d0085efa28
Fix server-side modal
2021-10-28 19:10:21 +11:00
Oliver
3ce8ba85f4
Further badge tweaks
2021-10-28 17:57:03 +11:00
Oliver
f8ac016d60
replace labels with badges
2021-10-28 17:41:40 +11:00
Oliver
c4fd9b7177
Fixes for part "card" view
2021-10-28 17:16:32 +11:00
Oliver
0ef0c539a7
Update bootstrap-table
2021-10-28 13:03:47 +11:00
Oliver
05d350b6c8
Tweaks for settings pages
2021-10-28 12:38:33 +11:00
Oliver
ae2c3e8293
remove "panel-inventree" references
2021-10-28 08:31:36 +11:00
Oliver
8535dd7572
part category and stock location views
2021-10-27 23:53:41 +11:00
Oliver
a21959f54d
Refactor stock location view
2021-10-27 23:46:09 +11:00
Oliver
840187f577
refactor stock item page
2021-10-27 23:35:59 +11:00
Oliver
9d2b4af83f
Refactor part display
2021-10-27 23:29:10 +11:00
Oliver
e235e5adec
Replace "panel-body" with "panel-content"
2021-10-27 23:09:14 +11:00
Oliver
711b3ba923
remove "panel-default"
2021-10-27 23:08:15 +11:00
Oliver
53c579c992
Refactor PO and SO pages
2021-10-27 23:03:08 +11:00
Oliver
5959dccff0
Refactor "supplier_part" page
2021-10-27 22:56:17 +11:00
Oliver
fe25ce8cd1
Refactor "manufacturer_part" view
2021-10-27 22:52:11 +11:00
Oliver
9536231cb0
Refactor company base page
2021-10-27 22:44:46 +11:00
Oliver
8fdaab233c
Refactor build page
2021-10-27 22:44:33 +11:00
Oliver
a004f293ff
Replace all instances of data-toggle with data-bs-toggle
2021-10-27 22:06:30 +11:00
Oliver
e178a2c370
Refactoring for "stock" pages
2021-10-27 21:50:18 +11:00
Oliver
707a03c416
Add breadcrumbs for build order page
...
(cherry picked from commit f32dfb01a2
)
2021-10-27 20:18:16 +11:00
Oliver
82271cfcb7
Add breadcrumbs to purchase order and sales order pages
...
(cherry picked from commit dd5eeb7c61
)
2021-10-27 20:18:09 +11:00
Oliver
9df9aaa18f
breadcrumbs
2021-10-27 20:17:37 +11:00
Oliver
219191eb6a
Updates for modal forms:
...
- Fix css classes
2021-10-27 16:48:45 +11:00
Oliver
abf2093ab9
Adds user option to enable "sticky header"
2021-10-27 16:26:41 +11:00
Oliver
827ff0f58b
Modal forms fixes
...
- Update bootstrap classes and terminology
- Visual tweaks to modal form title block
2021-10-27 16:26:28 +11:00
Oliver
1e31774ce7
Working on navbar
2021-10-27 15:48:42 +11:00
Oliver
c6ceea4d45
Remove reliance on "bootstrap-toggle" library
...
- Still needs fixing in modal forms
2021-10-27 09:37:07 +11:00
Oliver
3a4022b259
Add files for bootstrap v5.1.3
2021-10-27 08:04:34 +11:00
Oliver
b35ce79d6a
js linting fix
2021-10-26 08:00:28 +11:00
Oliver
cbbad98fea
Improve client-side validation of numerical inputs
2021-10-26 07:52:29 +11:00
Oliver
2d910022ac
Fix for supplier price breaks
...
- Make "price" field an InvenTreeMoneySerializer instance
- Add client-side validation for number inputs
2021-10-26 01:55:41 +11:00
Oliver
65b673b2bb
Improve pricing rendering for purchase order table
2021-10-24 19:43:05 +11:00
Oliver
bc596c1f20
Improve rendering of pricing in sale order table
2021-10-24 19:40:32 +11:00
Oliver
5f6e67086f
Add "reload" button for salesorderlineitem table
2021-10-24 19:35:23 +11:00
Oliver
a0140dc9a2
bug fix: enable "table reload" for tables without any filters
...
- setupFilterList function was returning too early
2021-10-24 19:35:15 +11:00
Oliver
367b80c17a
Merge pull request #2194 from matmair/reduce-vertical-space
...
Move part detail toggle button
2021-10-24 19:08:07 +11:00
Matthias
7f6f22fb03
move part toggle button
...
under action buttons to save vertical space when closed
2021-10-24 00:40:23 +02:00
Matthias
d97e3cd4e5
create stock on import
2021-10-24 00:19:17 +02:00
Matthias
bec845003d
fix defaults
2021-10-23 23:57:10 +02:00
Matthias
612832c3e7
respect defaults
2021-10-23 23:48:42 +02:00
Matthias
8e6aaa89f9
calculate true / false for fields
2021-10-23 23:40:57 +02:00
Matthias
1556663254
added fields to save step
2021-10-23 23:40:29 +02:00
Matthias
71cc155dc9
Capitalize name
2021-10-23 22:50:01 +02:00
Matthias
da9d2f7467
Added missing fields
...
Fixes #2181
2021-10-23 22:49:06 +02:00
Matthias Mair
edd2e16dfc
Merge branch 'inventree:master' into fix-sso-signup
2021-10-20 23:52:47 +02:00
Oliver
d3b1ecd65e
Add "owner" field
2021-10-20 23:44:01 +11:00
Oliver
50a79770e5
Un-comment lines in build.serializers
2021-10-20 23:37:26 +11:00
Oliver
f83dc134ef
linting
2021-10-20 23:20:43 +11:00
Oliver
8805b0a553
Add similar auto field capabilities to build order
2021-10-20 23:14:52 +11:00
Oliver
92568748cf
Further improvements
...
- Add callback for when a select2 form field is updated
- Adjust selected quantity based on returned data
- auto_fill the stock_item field
2021-10-20 23:03:03 +11:00
Oliver
f7b6c68237
Pre-fill the form with the remaining allocation quantity
2021-10-20 22:37:54 +11:00
Oliver
4a0ed4b2a1
Start of API forms for stock item
2021-10-20 10:53:21 +11:00
Oliver
c75586bd9a
Fix for rendering of build order page
2021-10-19 21:36:51 +11:00
Oliver
60771a74a4
"InvenTree Settings" > "Global Settings"
2021-10-19 11:00:32 +11:00
Oliver
a3b3bdc88b
Add some more icons to the settings page
2021-10-19 10:59:52 +11:00
Oliver
4de3bed342
UI tweaks
2021-10-18 22:19:54 +11:00
Oliver
5802a27fe7
Add a per-user setting to enable display of stock in search results
2021-10-18 16:23:42 +11:00
Oliver
4bb0b725da
JS cleanup
2021-10-18 15:51:50 +11:00
Oliver
ce921a6774
Display stock level in quick search bar
2021-10-18 15:40:00 +11:00
Oliver
4b344cd7bb
CSS tweaks
2021-10-18 12:36:42 +11:00
Oliver
68cfd8615e
Improvements to "grid view" for parts list
...
- Display 5 tiles per line
- Reduce padding
- Add border
2021-10-18 12:19:16 +11:00
Oliver
e04dfa0681
Unit test fix
2021-10-18 08:58:04 +11:00
Matthias
faa620b8f0
remove commit from super call
2021-10-17 18:52:59 +02:00
Oliver
fb6f15f462
Delete a bunch of old template files
2021-10-17 22:57:15 +11:00
Oliver
83faaa2da3
unit test fixes
2021-10-17 22:57:07 +11:00
Oliver
6ebb956c8d
Fix generation of API documentation
...
- Can't use get_object_or_404 in API views!
2021-10-17 22:32:03 +11:00
Oliver
7c5c1b6696
typo fix
2021-10-17 21:55:33 +11:00
Oliver
02f4f0fd15
js linting fixes
2021-10-17 21:50:18 +11:00
Oliver
a97a918860
cut out the fat
...
(removing dead code for outdated form views)
2021-10-17 21:46:33 +11:00
Oliver
4a6c1e850f
Cleanup unused form
2021-10-17 21:40:59 +11:00
Oliver
90593a187c
PEP fixes
2021-10-17 21:39:07 +11:00
Oliver
542b4113a1
Improvements for build output completion
...
- Check if the output is fully allocated (throw error if not)
- Reload tables after actions performed
2021-10-17 21:37:10 +11:00
Oliver
bd7fef720d
Enable "allocate" button only once the sub-table is expanded
2021-10-17 21:13:07 +11:00
Oliver
87dcaba0d8
Bump API version
2021-10-17 20:23:39 +11:00
Oliver
90625af39d
Re-enable the "allocate" stock button
2021-10-17 11:34:44 +11:00
Oliver
6c1dad8d91
Consolidate javascript for sidenavs
2021-10-17 11:26:08 +11:00
Oliver
9d2273c1cd
Further work on build output scripts
2021-10-17 11:25:53 +11:00
Oliver
283bf1682f
Remove old views / forms
2021-10-17 11:25:33 +11:00
Oliver
14ef56785e
Add option to select multiple build outputs
...
- Can "complete" these outputs
2021-10-16 14:27:02 +11:00
Oliver
d47b32e4aa
Adds function to complete multiple build outputs via the API
2021-10-16 14:08:53 +11:00
Oliver
ccaa7d2683
Merge branch 'master' into build-output-complete
2021-10-16 13:18:35 +11:00
Oliver
b60296e494
Add some more unit tests
2021-10-16 13:16:19 +11:00
Oliver
41e59e5311
Right align expand buttons
2021-10-16 13:01:19 +11:00
Matthias
103a4af9d4
fix signup with providers with extra args
2021-10-15 23:18:03 +02:00
Oliver
603f7d5f45
Fixes
2021-10-15 15:13:06 +11:00
Oliver
6343445433
Add support for backend-specific database functionality
2021-10-15 15:05:55 +11:00
Oliver
744befcc96
Merge pull request #2161 from matmair/onboarding-group
...
Onboarding group
2021-10-15 12:55:55 +11:00
Oliver
8e4deaa8c8
Standardize spelling of email / e-mail
...
(Spoiler: I chose "email")
2021-10-15 11:52:13 +11:00
Matthias
0657b71fe8
clearer name and PEP foxes
2021-10-14 22:19:52 +02:00
Matthias
f478a6236f
Merge branch 'master' of https://github.com/inventree/InvenTree into onboarding-group
2021-10-14 22:18:42 +02:00
Matthias
e0887cf55f
move goup forming into own function
2021-10-14 22:16:07 +02:00
Matthias Mair
55ba9ad6c9
Merge branch 'inventree:master' into fix-email-settingins
2021-10-14 21:39:32 +02:00
Matthias
27aec4246e
PEP fix
2021-10-14 21:33:54 +02:00
Matthias
f95896e8ea
this was not meant to be submitted
2021-10-14 21:33:35 +02:00
Matthias
3a586af556
move setting to better fit grouping
2021-10-14 21:27:41 +02:00
Matthias
b26bf780c3
setting to register group on signup
2021-10-14 21:27:09 +02:00
Matthias
3435254d2a
fix email config check
2021-10-14 16:34:59 +02:00
Oliver
4702c6b37f
Refactorin'
2021-10-15 00:25:36 +11:00
Oliver
0d49513092
Add button callbacks for top-level table
2021-10-14 23:58:03 +11:00
Oliver
bf47b57c82
working on updating build output tables
2021-10-14 23:46:21 +11:00
Oliver
be6f417dff
Random button cleanup
2021-10-14 23:13:12 +11:00
Oliver
b0a3280c05
Add unit testing
2021-10-14 23:13:08 +11:00
Oliver
54dd05a24d
Add an API serializer to complete build outputs
2021-10-14 23:13:01 +11:00
Oliver
0e589533e5
Merge pull request #2155 from SchrodingersGat/natural-sort
...
Natural sort
2021-10-14 19:32:02 +11:00
Oliver
2c9bbb051a
Add some unit tests
...
- Saving a model automatically updates the reference_int field
- Data migrations are correctly applied
2021-10-14 19:12:23 +11:00
Oliver
d0f60766e0
exclude new field from admin view
2021-10-14 18:57:02 +11:00
Oliver
ee7b8dc1ad
Merge pull request #2158 from SchrodingersGat/part-exclude
...
Exclude parts from API
2021-10-14 18:54:25 +11:00
Oliver
4327cbedce
Remove debug message
2021-10-14 18:01:16 +11:00
Oliver
d3d1d2f577
Auto-rebuild the reference field for the SalesOrder on save
2021-10-14 18:00:17 +11:00
Oliver
068b54f666
Data migration for PurchaseOrder and SalesOrder models
2021-10-14 17:58:09 +11:00
Oliver
5c6a7b489c
Data migration for the Build model
2021-10-14 17:54:46 +11:00
Oliver
7ce0f817aa
Add a 'reference_int' field to the models, to be used as a secondary index
2021-10-14 17:45:43 +11:00
Oliver
9b00ede61a
Add part queryset filtering to exclude particular ID values
2021-10-14 17:12:08 +11:00
Oliver
0c60387626
Extract a list of existing substitute parts from the form
2021-10-14 16:50:56 +11:00
Oliver
9319113793
quick bug fix
2021-10-14 16:27:10 +11:00
Oliver
05791a8efd
Merge pull request #2138 from rocheparadox/master
...
Custom name format for parts - FR InvenTree#2085
2021-10-14 16:03:58 +11:00
rocheparadox
5a6bea3452
improve regex for part name format validation
...
proper import of validation
2021-10-14 09:35:26 +05:30
rocheparadox
ee9e01fc22
removed unused import
2021-10-14 09:26:26 +05:30
rocheparadox
8cad687e43
Moved part name format validation to InvenTree.validators.py from common.models
...
validation to check if a field exists in part model
2021-10-14 09:23:21 +05:30
Oliver
e46875b0a3
Apply same fix to PurchaseOrder and SalesOrder lists
2021-10-14 14:31:25 +11:00
Oliver
233672d822
Add new functionality to InvenTreeOrderingFilter
...
- Allow ordering by multiple field aliases
- Simply way to implement "integer ordering" functionality
2021-10-14 14:25:39 +11:00
Oliver
0cdc82a4b3
Annotate BuildList queryset with integer cast of the reference
2021-10-14 14:24:17 +11:00
Oliver
44b4061d7d
Fix table filtering bug
...
- Introduced in recent "BOM substitutes" PR
2021-10-14 11:56:26 +11:00
Oliver
22572c6f35
Merge pull request #2150 from SchrodingersGat/bom-substitutes
...
Bom substitutes
2021-10-14 11:24:46 +11:00
Oliver
4a6bd0123a
Bug fixes
2021-10-14 11:00:27 +11:00
Oliver
7dfffcd5d3
Move "build unallocate" functionality to the API
...
- Much much simpler now!
- Filtering is against bom_item, not part
- Fixes a bug with the new (reasonably complex) substitution framework
2021-10-14 10:32:43 +11:00
Oliver
1cbce5dfbf
javascript fixes
2021-10-14 09:14:31 +11:00
Matthias
147d2d4631
fix default setting to not change current behaviour
2021-10-13 17:40:50 +02:00
Oliver
0581885ad5
Simplify BOM table buttons
2021-10-14 00:26:34 +11:00
Oliver
c32b17aa4a
Remove locale_stats file
2021-10-13 23:58:19 +11:00
Oliver
890741ef5d
Display badge indicating variant stock can be used
2021-10-13 23:57:50 +11:00
Oliver
be5c5496b2
Improvements to allocation of stock items against build orders
...
- Refactor functions for filtering stock using bom_item pk
- Allow selection of substitute items when allocating against build order
- Improvements for modal rendering
- Don't display filter drop-down if there are no filters available
2021-10-13 23:53:35 +11:00
Oliver
c7cec13076
Bug fix
2021-10-13 23:18:44 +11:00
Oliver
f3074e8f34
Improved unit testing for BomItem
...
- tests for allowing variant parts
- tests for allowing substitutes
2021-10-13 23:18:26 +11:00
Oliver
0f8c279aa2
Add some unit testing for the new model
2021-10-13 22:27:10 +11:00
Oliver
8512c2db75
Reload the parent table when adding or removing substitutes
2021-10-13 22:06:51 +11:00
Oliver
ea4c4c514f
Add uniqueness checking for the BomItemSubstitute model
2021-10-13 22:01:32 +11:00
Oliver
0e1e8226b1
Add a callback to remove individual rows
2021-10-13 21:42:50 +11:00
Oliver
8b41e68e6b
Launch a dialog displaying the available BOM substitutes
2021-10-13 21:33:41 +11:00
Oliver
6803f3cf63
Display "substitutes available" icon
2021-10-13 20:36:31 +11:00
rocheparadox
0742fb063c
comment cleanup
2021-10-13 10:58:36 +05:30
rocheparadox
294011a973
Merge remote-tracking branch 'upstream/master'
2021-10-13 10:10:59 +05:30
Oliver
6816071388
Simplify BOM editing view
...
- A user with permission to edit BOM data can immediately access the BOM editing tools
2021-10-13 14:44:59 +11:00
Oliver
51efd6b2e4
Add permissions for new mdoel
2021-10-13 14:06:36 +11:00
Oliver
37bd5c0507
Add serializer and API endpoint for BomItemSubstitute class
2021-10-13 13:58:41 +11:00
Oliver
f3f41730be
Add "substitutes" column to BOM table
2021-10-13 11:58:40 +11:00
Oliver
324ccd805d
Include BomItem substitutes in the serializer
2021-10-13 11:07:44 +11:00
Oliver
7c396f9f39
Enable optional pagination for the BomItem API endpoint
2021-10-13 11:07:34 +11:00
Oliver
a00dc9b0b1
Add migration file for new database model
2021-10-13 10:50:24 +11:00
Oliver
e20ddc289e
Merge branch 'master' into bom-substitutes
2021-10-13 10:15:03 +11:00
Oliver
4f985ae225
Revert 1fb76b9
...
Removes global functions to enable / disable entire sections of functionality
2021-10-13 09:40:17 +11:00
rocheparadox
a01918d4b9
removed blank line at the end of file
2021-10-12 19:54:09 +05:30
rocheparadox
4fddc656c4
removed unused import
...
added unit tests for PART_NAME_FORMAT
2021-10-12 19:51:21 +05:30
rocheparadox
2bf51b0ac3
Added PART_NAME_FORMAT to Inventree settings and exposed the same in settings window with a validator
2021-10-12 19:06:23 +05:30
rocheparadox
f4239fbfd3
Merge remote-tracking branch 'upstream/master'
2021-10-12 18:54:51 +05:30
Oliver Walters
4eb8c60ee0
Add new BomItemSubstitute model
2021-10-12 22:22:49 +11:00
Oliver
75bfdd615e
Fixes for unit tests
2021-10-12 11:38:25 +11:00
rocheparadox
beadfb4659
Merge remote-tracking branch 'upstream/master'
2021-10-11 22:29:01 +05:30
rocheparadox
2d77b21a4e
PART_NAME_FORMAT is introduced to display the names of parts in custom format. - For Feature Request InvenTree#2085
...
full_name construction in part.js is obsolete/redundant since the same is constructed in backend and sent through api response
2021-10-11 22:21:12 +05:30
Oliver
40e5536300
Handle rare case where user instance has no name assigned
2021-10-11 21:39:34 +11:00
Oliver
772d3fa67d
Merge remote-tracking branch 'inventree/l10_crowdin'
2021-10-11 21:02:35 +11:00
Oliver
5b4d646ca3
Merge pull request #2135 from SchrodingersGat/docs-fix-fix
...
re-simplify the documentation URL
2021-10-11 18:54:56 +11:00
Oliver
62ce278fb7
Fix: New translations django.po from Crowdin
2021-10-11 17:29:16 +11:00
Oliver
c125cc4b29
Fix: New translations django.po from Crowdin
2021-10-11 17:29:15 +11:00
Oliver
e9350ca0e4
Fix: New translations django.po from Crowdin
2021-10-11 17:29:13 +11:00
Oliver
004bb35245
Fix: New translations django.po from Crowdin
2021-10-11 17:29:12 +11:00
Oliver
b1f51afac1
Fix: New translations django.po from Crowdin
2021-10-11 17:29:11 +11:00
Oliver
f0d2a32990
Fix: New translations django.po from Crowdin
2021-10-11 17:29:09 +11:00
Oliver
fe06542498
Fix: New translations django.po from Crowdin
2021-10-11 17:29:08 +11:00
Oliver
20874ca68a
Fix: New translations django.po from Crowdin
2021-10-11 17:29:07 +11:00
Oliver
e1b0dc3669
Fix: New translations django.po from Crowdin
2021-10-11 17:29:05 +11:00
Oliver
b56c0e3a56
Fix: New translations django.po from Crowdin
2021-10-11 17:29:04 +11:00
Oliver
181091ce2d
Fix: New translations django.po from Crowdin
2021-10-11 17:29:02 +11:00
Oliver
51e822a1f5
Fix: New translations django.po from Crowdin
2021-10-11 17:29:01 +11:00
Oliver
b334b85363
Fix: New translations django.po from Crowdin
2021-10-11 17:28:59 +11:00
Oliver
f722c765b3
Fix: New translations django.po from Crowdin
2021-10-11 17:28:58 +11:00
Oliver
ce550cfcd0
Fix: New translations django.po from Crowdin
2021-10-11 17:28:57 +11:00
Oliver
0299dda74c
Fix: New translations django.po from Crowdin
2021-10-11 17:28:55 +11:00
Oliver
4a701a7a3a
Fix: New translations django.po from Crowdin
2021-10-11 17:28:54 +11:00
Oliver
76b0ed3243
Fix: New translations django.po from Crowdin
2021-10-11 17:28:53 +11:00
Oliver
00f8d98094
re-simplify the documentation URL
...
- dev version = "latest"
- stable version = "x.y.z"
- Requires an explicit docs version release for every software release
2021-10-11 17:26:48 +11:00
Oliver
19a8c712d4
Merge pull request #2017 from matmair/fr-1421-sso
...
SSO!
2021-10-11 17:20:08 +11:00
Oliver
d874dc29b1
Fix: New translations django.po from Crowdin
2021-10-11 12:03:48 +11:00
Oliver
20ab5c7cf0
Fix: New translations django.po from Crowdin
2021-10-11 12:03:47 +11:00
Oliver
5d619cbd0e
Fix: New translations django.po from Crowdin
2021-10-11 12:03:46 +11:00
Oliver
2755ae1b4c
Fix: New translations django.po from Crowdin
2021-10-11 12:03:44 +11:00
Oliver
581a3ffb2a
Fix: New translations django.po from Crowdin
2021-10-11 12:03:43 +11:00
Oliver
50a1fa42de
Fix: New translations django.po from Crowdin
2021-10-11 12:03:42 +11:00
Oliver
681452db3d
Fix: New translations django.po from Crowdin
2021-10-11 12:03:40 +11:00
Oliver
f7d66875c4
Fix: New translations django.po from Crowdin
2021-10-11 12:03:39 +11:00
Oliver
9952ff1eae
Fix: New translations django.po from Crowdin
2021-10-11 12:03:38 +11:00
Oliver
7b417460e6
Fix: New translations django.po from Crowdin
2021-10-11 12:03:37 +11:00
Oliver
fb943638c0
Fix: New translations django.po from Crowdin
2021-10-11 12:03:35 +11:00
Oliver
1adf77be86
Fix: New translations django.po from Crowdin
2021-10-11 12:03:34 +11:00
Oliver
1235e3e149
Fix: New translations django.po from Crowdin
2021-10-11 12:03:33 +11:00
Oliver
af576d5e90
Fix: New translations django.po from Crowdin
2021-10-11 12:03:32 +11:00
Oliver
629dad5e07
Fix: New translations django.po from Crowdin
2021-10-11 12:03:30 +11:00
Oliver
710e0e2c3b
Fix: New translations django.po from Crowdin
2021-10-11 12:03:29 +11:00
Oliver
32f13c6bef
Fix: New translations django.po from Crowdin
2021-10-11 12:03:28 +11:00
Oliver
2da8c81537
Fix: New translations django.po from Crowdin
2021-10-11 12:03:26 +11:00
Oliver
e45f50acd3
Merge pull request #2133 from SchrodingersGat/convert-out-of-stock
...
Allow conversion of out-of-stock items
2021-10-11 12:00:09 +11:00
Oliver
d3e5bc3141
Merge pull request #2132 from SchrodingersGat/esc-forms
...
Adds setting to close forms using escape key
2021-10-11 11:41:56 +11:00
Oliver
ab4c428031
Allow conversion of out-of-stock items
2021-10-11 11:31:23 +11:00
Oliver
49601d2b7e
Merge pull request #2130 from SchrodingersGat/links-fix
...
Fix various documentation links
2021-10-11 11:23:53 +11:00
Oliver
f978924c4e
Adds required tabindex
2021-10-11 11:23:35 +11:00
Oliver
25031e09e4
Enable setting for legacy launchModalForm function
2021-10-11 11:22:17 +11:00
Oliver
a32b5fdd64
Adds setting to close forms using escape key
...
- Configurable per user
- Default = false (to preserve behavior)
2021-10-11 11:16:33 +11:00
Oliver
8d33ee6298
Merge pull request #2129 from SchrodingersGat/sub-part-from-bom
...
Add option to BomItem form to create a new part
2021-10-11 10:59:30 +11:00
Oliver
c7bfce4a64
Fix various documentation links
...
- Reference the configured docs verrsion
2021-10-11 10:53:49 +11:00
Oliver
2f59e31a40
Merge pull request #2128 from SchrodingersGat/bom-focus
...
Auto-focus on the 'sub_part' field
2021-10-11 10:46:29 +11:00
Oliver
ede4ac9219
Add option to BomItem form to create a new part
2021-10-11 10:40:03 +11:00
Oliver
00275d61eb
Auto-focus on the 'sub_part' field
2021-10-11 10:25:36 +11:00
Oliver
cfbcb80285
Documentation URL is now hard-coded
...
- Also checked as part of CI step
2021-10-11 10:19:59 +11:00
Matthias Mair
848a72604e
Merge branch 'inventree:master' into fr-1421-sso
2021-10-08 22:38:16 +02:00
Oliver
b6d966b3fd
Fix: New translations django.po from Crowdin
2021-10-08 13:15:41 +11:00
Oliver
b60feea8cf
Fix: New translations django.po from Crowdin
2021-10-08 13:15:40 +11:00
Oliver
c62042c836
Fix: New translations django.po from Crowdin
2021-10-08 13:15:38 +11:00
Oliver
6254182059
Fix: New translations django.po from Crowdin
2021-10-08 13:15:37 +11:00
Oliver
b234b18324
Fix: New translations django.po from Crowdin
2021-10-08 13:15:36 +11:00
Oliver
49162331d5
Fix: New translations django.po from Crowdin
2021-10-08 13:15:34 +11:00
Oliver
2aa0897a6f
Fix: New translations django.po from Crowdin
2021-10-08 13:15:33 +11:00
Oliver
10abaae43d
Fix: New translations django.po from Crowdin
2021-10-08 13:15:32 +11:00
Oliver
a18be6328f
Fix: New translations django.po from Crowdin
2021-10-08 13:15:30 +11:00
Oliver
0db184fab6
Fix: New translations django.po from Crowdin
2021-10-08 13:15:29 +11:00
Oliver
533d16d3e1
Fix: New translations django.po from Crowdin
2021-10-08 13:15:27 +11:00
Oliver
8237e1a327
Fix: New translations django.po from Crowdin
2021-10-08 13:15:26 +11:00
Oliver
9c0b629cea
Fix: New translations django.po from Crowdin
2021-10-08 13:15:24 +11:00
Oliver
6733c1e1ff
Fix: New translations django.po from Crowdin
2021-10-08 13:15:23 +11:00
Oliver
ac48e36070
Fix: New translations django.po from Crowdin
2021-10-08 13:15:22 +11:00
Oliver
5755b615cb
Fix: New translations django.po from Crowdin
2021-10-08 13:15:20 +11:00
Oliver
5e818f7bd8
Fix: New translations django.po from Crowdin
2021-10-08 13:15:19 +11:00
Oliver
71443bd003
Fix: New translations django.po from Crowdin
2021-10-08 13:15:17 +11:00
Oliver
07d05ed000
PEP fix
2021-10-08 12:50:24 +11:00
Oliver
77c6e5e57e
Update display of BOM table based on the configurable setting
2021-10-08 12:47:51 +11:00
Oliver
69d932e193
Add a global setting to control price display in BOM tables
2021-10-08 12:47:27 +11:00
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
b0098d3ddc
Fix: New translations django.po from Crowdin
2021-10-08 04:48:11 +11:00
Oliver
2b73e7b9ac
Fix: New translations django.po from Crowdin
2021-10-08 03:43:05 +11:00
Matthias
fe7ab40b48
Merge branch 'master' of https://github.com/inventree/InvenTree into fr-1421-sso
2021-10-07 18:12:25 +02:00
Matthias
68f5af26b6
dont show mail functions if not enabled
2021-10-07 18:08:55 +02:00
Matthias
a45b8dcf0e
check also here if mail is enabled
2021-10-07 17:50:36 +02:00
Matthias
9a310bdd5c
do not send if not configured
2021-10-07 17:42:20 +02:00
Matthias
6c0c8bf1b6
PEP fix
2021-10-07 17:32:58 +02:00
Matthias
c37e40d144
use tag for testing
2021-10-07 17:31:18 +02:00
Matthias
c83d244663
change of strategies
2021-10-07 17:30:34 +02:00
Matthias
b4d9f0ff7e
fix save arguments
2021-10-07 17:11:47 +02:00
Matthias
8ef07dcf61
custom reset form
2021-10-07 15:08:08 +02:00
Matthias
f89dd84daf
check if mail is enabled
2021-10-07 14:24:20 +02:00
Matthias
a6c6b5c248
check if registration should be open in python
2021-10-07 14:08:19 +02:00
Oliver
4c653f1ba1
Fix: New translations django.po from Crowdin
2021-10-07 14:02:14 +11:00
Oliver
60f6e58f55
Fix: New translations django.po from Crowdin
2021-10-07 14:02:13 +11:00
Oliver
ef3070075f
Fix: New translations django.po from Crowdin
2021-10-07 14:02:11 +11:00
Oliver
358c41ba1a
Fix: New translations django.po from Crowdin
2021-10-07 14:02:10 +11:00