Oliver Walters
a8d47c54f9
Upate admin interface
2020-10-19 22:40:19 +11:00
Oliver Walters
934078a42c
Add "Reference" field to Build model
2020-10-19 22:36:14 +11:00
Oliver Walters
6b99d923d7
Change "status code" to "error code"
2020-10-19 16:44:33 +11:00
Oliver Walters
396b7dba73
Extra error information when a modal dialog fails
2020-10-19 16:42:53 +11:00
Oliver Walters
647e2cf64d
Change text for barcode
2020-10-19 16:06:18 +11:00
Oliver Walters
634410294b
Display table of items received against a particular purchase order
...
- Adds new tab to "Purchase Order" view
- Adds ability to filter StockList API by purchase_order ID
2020-10-19 11:40:57 +11:00
eeintech
dfa4d3f8ed
Display IPN and pipe char only if IPN exists
2020-10-18 14:37:35 -05:00
eeintech
d1df647dde
Merge branch 'master' of git://github.com/inventree/InvenTree into add_ipn_supplier_part_str
2020-10-18 14:33:38 -05:00
Oliver
529c4052ff
Merge pull request #1038 from mpdgraev/fix_int_barcode
...
fix error when submitting some non-dict barcodes
2020-10-19 00:01:38 +11:00
Oliver Walters
3c175a6c8d
Update creation of StockItem via API
...
- If no location is specified, but a default location exists for the part, use that
- If a location is specified (even if it is null) then the specified value is used instead
2020-10-18 22:24:45 +11:00
Oliver
83077514cb
Merge pull request #1041 from eeintech/api_default_location
...
Added part 'default_location' to serializer
2020-10-18 22:01:35 +11:00
eeintech
5a6cac43f5
Updated migration
2020-10-16 15:42:23 -05:00
eeintech
0b26d68d0f
Added admin view, improved validation of part related relationship
2020-10-16 15:29:58 -05:00
eeintech
34e4409e7f
Functional checkpoint: add/delete related parts from template
2020-10-16 13:50:31 -05:00
eeintech
8579abb9c2
Added related parts urls, views, form and templates
...
Adding related part relationships work but are still not shown in the part detail page
2020-10-15 16:58:39 -05:00
eeintech
3d9223c2ee
Introduced PartRelated model to store part relationships
2020-10-15 14:11:24 -05:00
eeintech
af6b30eaca
Added IPN to Supplier Part string representation
...
Improved Supplier Part templates and fixed 'Order Part' button in supplier_part_orders
2020-10-15 13:09:00 -05:00
eeintech
dbee26aaad
Fixed insertion of backslash in the barcode button group
2020-10-13 10:29:34 -05:00
eeintech
70a3b7f891
Improved migration, still fails if email duplicates exist in current DB
2020-10-13 07:43:57 -05:00
eeintech
ac82640c6c
Company: allowed duplicate names, made email field unique, custom migration
2020-10-12 17:51:48 -05:00
eeintech
3143242d13
Added category 'default_location' to serializer
2020-10-12 13:14:24 -05:00
eeintech
eb98496a79
Added part 'default_location' to serializer
2020-10-12 07:25:32 -05:00
mpdgraev
f1f31a1338
fix error caused by assumption that json.loads() returns an object with a .keys() function
2020-10-09 16:32:54 +02:00
Oliver Walters
3d60bccae0
Add support for setting timezone in config.yaml
2020-10-08 21:02:38 +11:00
Oliver Walters
8b16304e84
Custom 404 page
2020-10-08 14:09:08 +11:00
Oliver Walters
b595f3b732
Normalize quantity field when exporting BOM
2020-10-08 14:05:55 +11:00
Oliver
305920d1ac
Merge pull request #1030 from eeintech/stock_permissions
...
Stock permissions
2020-10-07 14:11:52 +11:00
eeintech
01eee4d208
Fixed style
2020-10-06 10:40:58 -05:00
eeintech
8499ced636
Changed from validation error to warning message when group instance is saved
2020-10-06 10:38:06 -05:00
eeintech
19a2326638
Merge branch 'master' of git://github.com/inventree/InvenTree into user_unique_group_validation
2020-10-06 10:04:35 -05:00
eeintech
1ce2166843
Fixed context permissions for superuser with no group assigned
2020-10-06 09:59:51 -05:00
eeintech
5bcf8529ff
Only users with Part view permission have part URL shown
2020-10-06 09:16:38 -05:00
eeintech
e4ce19d22a
Added Test user and all permissions
2020-10-06 09:02:10 -05:00
eeintech
095cfe9845
Updated Stock permission views and templates
2020-10-06 08:55:40 -05:00
Oliver Walters
8b37229e4b
The real translations are the ones we made along the way
2020-10-06 20:31:38 +11:00
Oliver Walters
b80e4302ba
Update permissions for build app
2020-10-06 20:29:16 +11:00
Oliver Walters
2325b1e4ba
Unit test fixes
2020-10-06 20:10:14 +11:00
Oliver Walters
9abb211cdf
Update template permissions
2020-10-06 20:09:55 +11:00
Oliver Walters
1c97aaf87a
Set permissions for order views
2020-10-06 19:46:53 +11:00
Oliver Walters
ab454e5ba4
More template changes: perms -> roles
2020-10-06 16:46:13 +11:00
Oliver Walters
88f73443ee
Yet more style fixes
2020-10-06 16:43:39 +11:00
Oliver Walters
77a2b6de8b
Merge branch 'part-permissions' of https://github.com/SchrodingersGat/InvenTree into part-permissions
2020-10-06 16:03:33 +11:00
Oliver Walters
b3e4efd96e
Unit testing fixes
2020-10-06 16:03:19 +11:00
Oliver
e076470305
Merge branch 'master' into part-permissions
2020-10-06 12:35:45 +11:00
Oliver Walters
d691b15f4b
Fix conflicts
2020-10-06 12:34:30 +11:00
Oliver Walters
11d31960c7
Change modal form permissions to use new "role" strategy
2020-10-06 11:42:16 +11:00
Oliver Walters
c740cce5e4
PEP fixes
2020-10-06 11:31:04 +11:00
Oliver Walters
dc2c9aa662
Add InvenTreeRoleMixin
...
- Simplifies permission requirements for views
- e.g. 'part.view' rather than 'part.view_partcategory'
2020-10-06 11:29:38 +11:00
Oliver Walters
d2e2e7511f
Update templates: Change perms to roles
2020-10-06 10:07:39 +11:00
Oliver Walters
fa21d66c41
Fix logic for global context object 'roles'
...
- User may be a part of multiple groups
- Roles are additive across groups
2020-10-06 09:54:37 +11:00
Oliver Walters
23aee234f0
Change index page to use roles rather than perms to determine user permissions
2020-10-06 09:32:05 +11:00
Oliver Walters
556ffa1099
Change label for permissions to match django permission names
2020-10-06 09:28:05 +11:00
Oliver Walters
8b2189daca
Add global context 'roles'
...
- Access via template e.g. {% if roles.part.view %}
- Always True if the user is a superuser
2020-10-06 09:27:22 +11:00
eeintech
911b23ca24
Added validation logic for user list to Group admin form
2020-10-05 13:12:52 -05:00
eeintech
d980da7247
Fixed permission assign test unit
2020-10-05 10:52:47 -05:00
eeintech
c910307ce5
Only saving Group model rulesets on instance creation and when inlines are saved
2020-10-05 10:04:54 -05:00
Oliver Walters
3f59ce3f93
Update unit tests
...
- requires the user to actually have the necessary permissions!
2020-10-06 01:30:36 +11:00
Oliver Walters
16d720b62c
Update permission requirements for API
...
- Automatically use model permissions by default!
-
2020-10-06 00:36:55 +11:00
Oliver Walters
8ee16d6f98
update translation files
2020-10-06 00:20:57 +11:00
Oliver Walters
ba4c829b10
Add permission requirements in various part templates
2020-10-06 00:20:45 +11:00
Oliver Walters
afadd51a14
Fix permissions in views.py
...
Silly, "add" not "create"
2020-10-06 00:19:44 +11:00
Oliver Walters
66bdce3d04
Hide elements on the PartCategory page, based on permissions
2020-10-05 23:53:24 +11:00
Oliver Walters
4d49cb029f
Change part views to require permissions
...
Also adds custom 403 page
2020-10-05 23:49:32 +11:00
Oliver Walters
3e9c7cda21
Change what elements the user can see on the index page, based on permissions!
2020-10-05 23:11:55 +11:00
Oliver Walters
806a7f961d
Fixes for role permissions
...
- Fixed a strange interaction if multiple rulesets referred to the same models
- Order of operations was incorrect.
- Now is good? Yes!
2020-10-05 22:57:05 +11:00
Oliver
731c796254
Merge pull request #1011 from SchrodingersGat/navbar-permissions
...
Hide main elements of navigation bar based on user permissions
2020-10-05 11:17:41 +11:00
Oliver
dc41231fcc
Merge pull request #1018 from SchrodingersGat/group-roles
...
Roles and Permissions
2020-10-05 11:16:52 +11:00
Oliver Walters
898c604b3b
Fix incorrect permission names
...
- Uses the app_model name, *NOT* the name of the database table
- Adds extra tests to ensure that permissions get assigned and removed correctly
2020-10-05 08:55:15 +11:00
Oliver Walters
095ef51991
Cleanup unit testing
2020-10-05 08:29:36 +11:00
Oliver Walters
bce7eb1aad
update translation files
2020-10-05 01:02:36 +11:00
Oliver Walters
13cd8624b2
Fix permissions
2020-10-05 01:01:56 +11:00
Oliver Walters
48e050d317
Add some more unit tests and validation code for the StockItem model
...
- Ensure that the build part matches the stockitem part!
2020-10-05 00:49:00 +11:00
Oliver Walters
3ee7be1d58
Add "optional" field to BomItem
...
- Defaults to False
- Indicates that the BomItem is "optional" for a build
- Will be used in the future when calculating if a Build output is fully allocated!
2020-10-05 00:42:09 +11:00
Oliver Walters
c1595396c4
Unit testing: fix PEP issues
2020-10-05 00:29:31 +11:00
Oliver Walters
fe3a72c6cc
Add some unit testing
2020-10-05 00:29:06 +11:00
Oliver Walters
26d113e8ad
Update IN_STOCK_FILTER to reject stock items which have is_building set to True
2020-10-05 00:14:04 +11:00
Oliver Walters
ee28b4eea5
Add "is_building" field to StockItem model
...
- This will be set to TRUE until a stock item has been completed
2020-10-05 00:12:42 +11:00
Oliver Walters
62734c4b72
Add a custom template for the install item form
2020-10-05 00:01:01 +11:00
Oliver Walters
3fe0886207
Remove a debug statement
2020-10-04 23:49:01 +11:00
Oliver Walters
852da6d696
Fix form validation
2020-10-04 23:48:15 +11:00
Oliver Walters
42a75a8238
Add hidden input to the InstallStockForm form
...
- keeps track of "part" object
- so we can filter the stock_items queryset if the form validation fails
- Is there a more djangonic way of doing this??
2020-10-04 23:45:52 +11:00
Oliver Walters
46f459b4c7
Better display of stock table
2020-10-04 23:34:02 +11:00
Oliver Walters
b9291c6705
Improve transaction note recording for the StockItem model
2020-10-04 23:33:43 +11:00
Oliver Walters
824ce6778f
Progress bar tweaks
...
- If no maximum value supplied, just show the value (and fill to 100% width)
2020-10-04 23:33:20 +11:00
Oliver Walters
3c5968ef1a
Add subrow table to the "installed items" view
...
Ah, javascript...
2020-10-04 22:58:41 +11:00
Oliver Walters
9c27680202
Finish function to install stock item(s)
2020-10-04 21:32:21 +11:00
Oliver Walters
45c888e13d
Custom cleaning for form
...
Ok, looks like I've been doing this wrong the whole time!
The "djangonic" way is pretty cool
2020-10-04 21:31:44 +11:00
Oliver Walters
a686500df1
Calculate initial values for the view
2020-10-04 21:02:20 +11:00
Oliver Walters
fd22e713ff
Filter available stock items by Part reference
2020-10-04 20:50:06 +11:00
Oliver Walters
f04977e7e1
Add form / view for installing a stock item into another stock item
2020-10-04 20:41:28 +11:00
Oliver Walters
b467c8a1ef
Add front-end functions to render an "installed stock" table
2020-10-04 15:17:46 +11:00
Oliver Walters
b27f926310
Add ability to filter BOM API by "trackable" status of the sub_part object
2020-10-04 13:51:52 +11:00
Oliver Walters
fb09f53dc9
Add missing migration file
2020-10-04 12:58:45 +11:00
Oliver Walters
929411e49a
Remove "general" ruleset
2020-10-04 12:53:24 +11:00
Oliver Walters
31b699d521
Hide "user permissions" view from the admin interface
2020-10-04 12:47:19 +11:00
Oliver Walters
cda52a58e3
Remove manual 'permissions' control from groups admin interface
...
- Does not actually *do* anything any more as the RuleSet approach overrides it anyway
2020-10-04 12:19:56 +11:00
Oliver Walters
c19c014f55
Add or remove permissions from groups as defined by the RuleSet links
...
- Only runs when the group is changed
- Does not add permissions if they already exist
- Does not remove permissions if they do not exist
2020-10-04 12:18:31 +11:00
Oliver Walters
d5c0c12d78
Add some more unit testing
...
- ALL models must be covered by rulesets
- Added a RULESET_IGNORE list for models we do not want permissions for
2020-10-04 11:03:14 +11:00
Oliver Walters
c09b4980ad
PEP fixes
2020-10-04 00:43:02 +10:00
Oliver Walters
1ded9e1fc0
Add a warning showing which databases tables are not covered by defined rulesets
2020-10-04 00:38:53 +10:00
Oliver Walters
6c2eb959a6
More unit testing
2020-10-04 00:34:22 +10:00
Oliver Walters
2039100d3e
Add some unit testing
2020-10-04 00:24:48 +10:00
Oliver Walters
6bc5fe2497
Tab fix
2020-10-04 00:03:10 +10:00
Oliver Walters
9e4cc73b1c
Add migration files
2020-10-04 00:01:18 +10:00
Oliver Walters
16f1b4c784
Add hook to update group permission roles
...
(doesn't do anything yet)
2020-10-03 23:45:24 +10:00
Oliver Walters
bedda66949
Add custom admin view for the "Group" model
...
- Ref: https://github.com/Microdisseny/django-groupadmin-users
- Adds ability to edit users within a particular group from the group admin page!
2020-10-03 17:37:20 +10:00
Oliver Walters
c7403fd512
Add shell interface
2020-10-03 16:18:03 +10:00
Oliver Walters
f12f8156bd
Fix for "next avilable serial number" string
2020-10-02 13:54:23 +10:00
eeintech
496232ed6d
Added tests for Category parameters methods, some code clean-up
2020-10-01 13:46:56 -05:00
eeintech
9d3d9a190b
Added bootstrap table 'filter-control' extension to use in parametric tables
2020-10-01 12:10:35 -05:00
eeintech
15e1c05791
Fixed 'Part' column sorting
2020-10-01 11:05:08 -05:00
eeintech
b7d25a75c4
Hide part toolbar, nicer part representation, improved parameters prefetching
2020-10-01 10:03:49 -05:00
eeintech
a71b5ef0a0
Merge branch 'master' of git://github.com/inventree/InvenTree into parametric_part_tables
2020-10-01 09:02:21 -05:00
eeintech
4763f3ea46
Reformulated empty query message
2020-09-30 11:53:14 -05:00
eeintech
87d836617e
Merge branch 'master' of git://github.com/inventree/InvenTree into empty_search_query
2020-09-30 11:50:12 -05:00
Oliver
4f648f8787
Merge pull request #1010 from SchrodingersGat/admin-permission-fixes
...
Update admin links to require specific permissions
2020-10-01 00:37:43 +10:00
Oliver Walters
756f3ddb0f
Hide main elements of navigation bar based on user permissions
2020-10-01 00:25:24 +10:00
Oliver Walters
626d0266c8
Add framework for required permissions for any ajax modal forms
...
- Default permissions of "*" will not immediately change any modal forms
- Set the permission_required attribute of any modal form for this to be implemented
2020-10-01 00:16:04 +10:00
Oliver Walters
56660d52f2
Add "permission denied" message on modal forms
2020-10-01 00:09:21 +10:00
Oliver Walters
81864a6ab8
Fix button layout for stock table
2020-10-01 00:00:37 +10:00
Oliver Walters
27656633df
Update admin links to require specific permissions
2020-09-30 23:57:23 +10:00
Oliver Walters
a952dc38a3
Add filtering for parts which have an IPN set
2020-09-30 23:35:39 +10:00
Oliver
c4cae02170
Update version.py
2020-09-30 08:06:58 +10:00
Oliver
8ea2c627c4
Update version.py
...
Bump version number for release
2020-09-30 08:06:37 +10:00
Oliver Walters
4f1d087654
PEP fix
2020-09-30 07:56:44 +10:00
eeintech
40d8a07acc
Now loading data! Still need to be bonified
2020-09-29 16:49:53 -05:00
eeintech
d05a5978a0
Unique parameters names from category makes it to bootstrap table
2020-09-29 16:13:08 -05:00
eeintech
6b48977e7b
Added 'Parametric Table' tab to category detail view, added part_count to 'Parts' tab
2020-09-29 15:16:12 -05:00
Oliver Walters
d1cce7df94
Add direct admin links if the user is staff
2020-09-30 00:02:10 +10:00
Oliver Walters
0e5f10c020
Add some more search terms to the admin interface
2020-09-29 23:41:50 +10:00
Oliver Walters
1f6cbd7408
Add action to uninstall a particular stock item
2020-09-29 23:11:37 +10:00
eeintech
18e19d7920
Empty search query returned all elements from database
2020-09-28 16:34:41 -05:00
Oliver Walters
e78e649aa9
Change layout for the index page
...
- Expanding one table doesn't force the neighbouring one to be expanded also
2020-09-28 22:22:48 +10:00
Oliver Walters
38beaff01b
peppy
2020-09-28 22:09:09 +10:00
Oliver Walters
d348d90fbe
Cleanup errors in unit testing
2020-09-28 22:08:38 +10:00
Oliver Walters
ae55c81dae
Updated translation files
2020-09-28 22:04:08 +10:00
Oliver Walters
54bfcff213
CHange "parts" to "items"
2020-09-28 22:03:41 +10:00
Oliver Walters
b2b22762ef
style fixes
2020-09-28 22:01:45 +10:00
Oliver Walters
a18886f196
Add some unit tests for the new functions
2020-09-28 22:00:17 +10:00
Oliver Walters
df8d1fb32b
Add functions to install and uninstall stock items
2020-09-28 21:52:23 +10:00
Oliver Walters
81ce284264
Select the "default" where we wish to uninstall parts
2020-09-28 21:41:35 +10:00
Oliver Walters
39cfe39172
View / form / url for stock-uninstall form
2020-09-28 21:27:27 +10:00
Oliver Walters
2ef8464a83
Add buttons to remove installed items from a stock item
2020-09-28 20:27:13 +10:00
Oliver Walters
b58f7d7461
Custom table display for installed stock items
2020-09-28 20:19:56 +10:00
Oliver Walters
d684ed076b
Improve table filter naming
2020-09-28 20:10:29 +10:00
Oliver Walters
f253bf1843
Add ability for stock API to be filtered by installed status
2020-09-28 20:07:25 +10:00
Oliver Walters
8dd8e69c05
Add "installed parts" tab for stock item
2020-09-28 19:34:43 +10:00
Oliver Walters
97b35d9269
Renamed related name "owned_parts" to "installed_parts"
2020-09-28 19:33:32 +10:00
Oliver Walters
b76e6a5023
Bugfix: Test result ordering was reversed!
2020-09-28 09:02:17 +10:00
Oliver Walters
8a4597be6a
Adds ability to filter stock API results by batch code
2020-09-23 09:11:46 +10:00
Oliver
fb247c3dd8
Merge pull request #994 from SchrodingersGat/docs-update
...
Update links to documenation
2020-09-23 08:51:07 +10:00
eeintech
120a17241e
Reduced SQL load for 'Require Stock to Complete Build' widget on homepage
2020-09-22 11:24:09 -05:00
Oliver Walters
07adee3c51
Update links to documenation
2020-09-21 22:44:48 +10:00
Oliver Walters
5d6e20d897
Build display improvements
...
- Reload AJAX table instead of entire page
- Clean up auto-allocate page
- Add extra message
2020-09-21 08:05:31 +10:00
Oliver
7dbb6c7c8e
Merge pull request #988 from SchrodingersGat/sell-price
...
Sell price
2020-09-19 23:52:25 +10:00
Oliver Walters
f19a727a02
Allow searching by stock item batch code
2020-09-19 23:40:06 +10:00
Oliver Walters
89b3290068
Add search results for stock items
2020-09-19 23:38:33 +10:00
Oliver Walters
083bfe05c0
Add ability to search stock API
...
- serial number
- part information
2020-09-19 21:49:07 +10:00
Oliver Walters
2e1388475e
Filter stock tables by serial number
2020-09-19 21:39:43 +10:00
Oliver Walters
b30754f561
Animate hourglass icons
2020-09-19 21:26:34 +10:00
Oliver Walters
b9594db832
Add some hourglass loading icons
2020-09-19 21:23:36 +10:00
Oliver Walters
597ab37ba6
Further cleanup
2020-09-19 21:18:29 +10:00
Oliver Walters
1b6843e72d
Cleanup "bom_invalid" filter
...
- Allow filtering by bom either valid or invalid
- Use "bom_valid" as the filter (positive tense)
2020-09-19 21:03:49 +10:00
Oliver Walters
87d0d872e0
Fix spelling mistakes
2020-09-19 20:45:00 +10:00
Oliver Walters
b8509f7533
Add ability to filter builds by "active" status
2020-09-19 20:42:20 +10:00
Oliver Walters
11a17fb9b1
Implement a "simplified" part table which does not enforce extra filtering
2020-09-19 20:35:30 +10:00
Oliver Walters
eaf42b8abe
Instead of creating a custom filter for "latest" parts,
...
simply make use of the existing "ordering" query as part of DRF
2020-09-19 20:26:17 +10:00
Oliver Walters
86660a5f17
style fixes
2020-09-19 19:52:48 +10:00
eeintech
6540fb968e
Merge branch 'master' of git://github.com/inventree/InvenTree into new_homepage_layout
2020-09-18 11:52:26 -05:00
eeintech
c55fa13cdb
Added part list which require more stock to be built
2020-09-18 11:40:50 -05:00
Oliver Walters
ca1281ee10
Adds ajax table for part sale price information
2020-09-18 22:11:51 +10:00
Oliver Walters
ff7570aea4
VIews / forms / etc
2020-09-18 21:49:56 +10:00
Oliver Walters
1a90106bac
Add a tab for part sale prices
2020-09-18 21:20:28 +10:00
Oliver Walters
a95dd86540
Limit choices for the 'Part' reference in the new model
2020-09-18 09:16:59 +10:00
Oliver Walters
71c0406cf3
Register new model in the admin interface
2020-09-18 09:16:41 +10:00
eeintech
945c3c214d
Added outstanding purchase and sales orders views to homepage
2020-09-17 17:19:19 -05:00
eeintech
3d597cc3c3
Added 'Pending' builds report to homepage, includes builds with 'Allocated' status
2020-09-17 14:36:05 -05:00
Oliver Walters
8f1b018f0a
Add table for price breaks for selling a part
2020-09-17 23:22:37 +10:00
Oliver Walters
e51fee081b
SupplierPart price break table now uses API rather than django template
2020-09-17 23:19:50 +10:00
Oliver Walters
805e8daa57
Convert SupplierPriceBreak model to use the abstract PriceBreak class
2020-09-17 22:47:31 +10:00
Oliver Walters
95c5c4b575
Fix issues with circular imports
2020-09-17 22:44:17 +10:00
alex
d10ba5edc3
handle case where stock item does not have a location set; also show header
2020-09-17 00:55:54 -07:00
alex
6ed604bbb8
fix erroring html
2020-09-17 00:49:17 -07:00
eeintech
28a55f0a58
Merge branch 'master' of git://github.com/inventree/InvenTree into new_homepage_layout
2020-09-16 17:03:59 -05:00
eeintech
a9fffe6a73
Added latest parts and invalid BOMs on homepage
2020-09-16 17:02:24 -05:00
eeintech
472e2d0acd
Fixed borders of navbar barcode button
2020-09-16 09:44:12 -05:00
Oliver Walters
d674eacd78
Ensure correct path separator is returned
2020-09-13 21:10:11 +10:00
Oliver Walters
32cde5d8f1
Fixx css for multiple button groups
2020-09-13 20:56:05 +10:00
Oliver Walters
04c702e1b8
Improve action buttons for part display
2020-09-13 20:42:59 +10:00
Oliver Walters
aa35c787b2
Fix for weird button toggles (it was a doozy!)
...
- Turning off autocomplete seems to have done the job
- https://stackoverflow.com/questions/36546775/html-checkboxes-keep-checked-after-refresh#36547079
2020-09-13 17:47:40 +10:00
Oliver Walters
57e395de71
BOM: Allow multiple BOM items to be selected and deleted
...
(in editing mode)
2020-09-13 00:40:06 +10:00
Oliver Walters
7a7db97914
add inventreeDelete ajax function
2020-09-13 00:39:25 +10:00
Oliver Walters
36ac268b96
BOM Display: Multiple fixes
...
- Previous multi-level BOM display changes had broken the table in editing mode
- Simplify code
- Re-implement edit / delete / validate buttons
- Re-enable checkboxes in edit mode
2020-09-13 00:13:53 +10:00
eeintech
28585644ea
Added automatic listing of custom CSS sheets (no more hardcoded), added error message when current selection is not valid and select default theme
2020-09-09 14:55:32 -05:00
eeintech
8198fad6d5
Updated common.colortheme migration
2020-09-08 16:36:58 -05:00
eeintech
35060ce8dc
Merge branch 'master' of git://github.com/inventree/InvenTree into color_themes
2020-09-08 16:33:22 -05:00
eeintech
896fa131f0
Moved color themes CSS sheets to own folder, nicer crispy form for selecting theme
2020-09-08 16:24:22 -05:00
eeintech
8e2d568a42
Style correction (missing ending new line), removed commented line in ColorThemeSelectForm
2020-09-07 17:01:05 -05:00
eeintech
10dd8fad80
Renamed Theme to ColorTheme, ColorTheme is now a per-user selection
2020-09-07 16:27:23 -05:00
eeintech
2e5ec5d249
Theme change works but applies to all user
2020-09-07 15:15:51 -05:00
eeintech
0548bee8ad
Added Color Theme view in settings
2020-09-07 11:29:24 -05:00
eeintech
27241e217f
Style correction
2020-09-07 08:46:39 -05:00
eeintech
c5efce36b6
Added PartDetailFromIPN view tests
2020-09-07 08:40:37 -05:00
eeintech
41071f0ed4
Moved IPN url pattern to right before Part index to avoid catching others
2020-09-05 12:03:07 -05:00
eeintech
8198e919b1
Merge branch 'master' of git://github.com/inventree/InvenTree into part_ipn_slug
2020-09-05 11:42:33 -05:00
Oliver Walters
87f25eacc5
Add link from stock item to base part
2020-09-06 00:01:14 +10:00
Oliver
22e30903b6
Merge pull request #965 from SchrodingersGat/api-stock-fix
...
Major bugfix for multiple annotations in API querysets
2020-09-05 23:42:25 +10:00
Oliver Walters
46a8107be5
Refactor stock filter
2020-09-05 23:35:48 +10:00
Oliver Walters
2cf40c0e0b
Translation updates
2020-09-05 23:32:36 +10:00
Oliver Walters
f7ad38dad5
Add unit tests for new aggregation annotation approach
2020-09-05 23:28:54 +10:00
Oliver Walters
5f2e4c3790
Update serializers for Order model
2020-09-05 23:08:59 +10:00
Oliver Walters
598e15af46
Fix annotations for Company serializers
2020-09-05 23:03:38 +10:00
Oliver Walters
db214dfd73
Update queryset annotation for StockItem
...
- Query time reduced from 4.1 to 3.5s (for sample data)
2020-09-05 22:50:17 +10:00
Oliver Walters
42967905bc
New approach for multiple annotations
...
- Use the django-sql-utils addon - https://github.com/martsberger/django-sql-utils
- The "distinct=True" flag was not doing what I thought it was doing...
2020-09-05 22:35:19 +10:00
Oliver Walters
f737ad2d38
Bugfix: CreateStockItem form
...
- hide the field rather than popping it
2020-09-05 20:31:18 +10:00
Oliver Walters
c4989e59b2
Allow selection of bom_copy and parameter_copy when making a new variant
2020-09-05 20:10:18 +10:00
eeintech
2fa284d37b
Added PartDetailFromIPN view (subclass of PartDetail) and url pattern
2020-09-04 17:20:17 -05:00
eeintech
440a5fafea
Implemented part parameters copy from template/original part
2020-09-04 14:02:12 -05:00
Oliver
11b751323e
Merge pull request #953 from SchrodingersGat/part-import-fix
...
Part: Alter model fields to fix data import issues
2020-09-03 00:18:26 +10:00
Oliver Walters
34a334236a
Part: Alter model fields to fix data import issues
...
Without setting 'null=True' on fields which may be empty,
the import subsequently fails if these fields are indeed empty
2020-09-03 00:11:20 +10:00
Oliver Walters
b89588ffb7
variant of link links to variants page
2020-09-03 00:00:03 +10:00
Oliver Walters
303572bc03
More translation updates
2020-09-02 23:57:51 +10:00
Oliver Walters
e3d92e1390
Fixes for translation script
2020-09-02 23:54:35 +10:00
Oliver Walters
eaec85398f
Treegrid display for part variants
2020-09-02 23:51:28 +10:00
Oliver Walters
62c26c881d
Add ability to filter part list by 'ancestor'
2020-09-02 23:18:26 +10:00
Oliver Walters
36955d6d4f
pep fixes
2020-09-02 20:16:46 +10:00
Oliver Walters
92ec849fc1
Add ci settings file for postgresql database
2020-09-02 20:09:11 +10:00
Oliver Walters
bb9e8fa97b
Merge remote-tracking branch 'inventree/master' into multi-db-unit-test
...
# Conflicts:
# InvenTree/build/test_build.py
2020-09-02 20:02:22 +10:00
Oliver Walters
911727f7b7
Update test fixtures
...
- Can't assume that pk values will be assigned sensibly!
- Need to hard-code them in
2020-09-02 19:47:07 +10:00
Oliver Walters
55c1ea750c
Add CI tests for MySQL database
2020-09-01 21:01:38 +10:00
Oliver Walters
4613730a19
PEP fixes
2020-09-01 20:24:14 +10:00
Oliver Walters
74f25ee7f9
Part: Extend logic for "latest" serial number
...
- Return value if it is a string
- Remove 'getNextSerialNumber' function
- Improve functionality of function which returns serial number placeholder string
2020-09-01 20:16:46 +10:00
Oliver Walters
e6c0a04131
Merge branch 'feature-non-int-serial' of git://github.com/bcc/InvenTree into bcc-feature-non-int-serial
2020-09-01 19:41:48 +10:00
Oliver Walters
1eeaa17085
Merge remote-tracking branch 'inventree/master'
2020-09-01 16:41:07 +10:00
Oliver Walters
ffbdb0317f
Add "focus" option when displaying a modal form
2020-09-01 12:43:37 +10:00
Oliver
90d2265dae
Merge pull request #945 from SchrodingersGat/template-attachments
...
Part: add function to get part attachments for *all* parents of a part
2020-08-31 22:38:02 +10:00
Oliver Walters
73892e894e
Refactoring
2020-08-31 22:30:38 +10:00
Oliver Walters
cd8214ff4a
Part: add function to get part attachments for *all* parents of a part
2020-08-31 22:26:46 +10:00
Oliver
baaabd00d6
Merge pull request #939 from SchrodingersGat/column-remembering
...
Make checkbox field non-switchable for stock table
2020-08-31 22:08:56 +10:00
Oliver Walters
672936e2d4
Update many tables
2020-08-31 21:55:01 +10:00
Oliver Walters
97ed70502c
Fix function which hides table columns based on saved selections
2020-08-31 20:42:11 +10:00
Oliver Walters
59e7474f75
Stock: More unit tests
...
- Add some more tests (would have caught a bug that was there already, darn it)
2020-08-31 20:09:43 +10:00
Oliver Walters
8615cad711
Stock: Fix serializers.py
...
- Use of read_only PrimaryKeyRelatedField was breaking POST via API
2020-08-31 20:08:07 +10:00
Oliver Walters
5c4781b5b4
Order: Improve help text(s)
2020-08-31 19:13:24 +10:00
Ben Charlton
06552832cb
Style corrections
2020-08-28 17:30:16 +01:00
Ben Charlton
6b1696f8df
Merge branch 'master' into feature-non-int-serial
2020-08-28 17:14:02 +01:00
Oliver Walters
7829e3654c
Add callback when a column is shown / hidden
2020-08-28 10:51:55 +10:00
Oliver Walters
9c2e959ab0
Add function to turn a set of visible columns into a settings string for saving to session
2020-08-28 10:50:43 +10:00
Oliver Walters
86e675dbbd
Make checkbox field non-switchable for stock table
2020-08-28 10:49:49 +10:00
Oliver Walters
f6d8a3f229
Merge remote-tracking branch 'upstream/master'
2020-08-27 22:50:52 +10:00
Oliver Walters
b17c3f6e0f
Fix for empty option
2020-08-27 08:41:38 +10:00
Oliver Walters
27f7745231
Follow link to newly created StockItem
2020-08-27 08:37:18 +10:00
Oliver Walters
19329a9627
Merge remote-tracking branch 'inventree/master'
2020-08-27 00:21:42 +10:00
Oliver Walters
146dae6d43
Toot toot - it's the refactor tractor!
...
- New function for launching a CreateStockItem form
- Wraps up the previous code improvements into a single function
- Oh, the ease!
2020-08-27 00:08:02 +10:00
Oliver Walters
4be1b2928b
PEP fix
2020-08-26 23:50:49 +10:00
Oliver Walters
72899530cf
Add helper function to simplify reloading of field options
2020-08-26 23:43:19 +10:00
Oliver Walters
9dcc23ee4e
Hide 'supplier part' options if no part is selected in the form
2020-08-26 23:40:15 +10:00
Oliver Walters
3a75682878
Add "pretty" name to the SupplierPart API
...
- Quick way to ensure the supplier part objects are printed the same way
- Use the pythonic back-end to render the data
2020-08-26 23:23:57 +10:00
Oliver Walters
5aa11063a0
Add function to update the 'options' for a given field in a modal
2020-08-26 23:13:32 +10:00
Oliver Walters
2037474fad
Option generation function now returns array, rather than flat text
2020-08-26 23:04:50 +10:00
Oliver Walters
02d17378a6
Add function to programatically generate a list of <option> elements
2020-08-26 23:02:25 +10:00
Oliver Walters
6ab34c3d0e
SupplierPart - Improve API
...
- The default DRF behaviour throws errors if the supplied query params do not conform to the limit_choices_to field
- This is non optimum! Don't want to have to handle these cases
- Do the filtering ourselves!
2020-08-26 22:44:22 +10:00
Oliver Walters
d44ad541eb
Add "callback" functionality for modal forms when a given field is changed
...
- Attach callback function
- Add a function to retrieve a field by name
2020-08-26 22:35:36 +10:00
Oliver Walters
54d0c4e8a8
Bugfix: Select test report template
...
- Actually, two bugs!
2020-08-26 14:29:49 +10:00
Oliver
ee0df29af0
Merge pull request #921 from eeintech/show_potential_bom_items_stock
...
Show 'available_stock' in Part string representation
2020-08-26 09:36:55 +10:00
eeintech
5d6def75cc
BoM export, Part stock: changed 'Location' header to 'Default Location'
2020-08-25 16:02:46 -05:00
eeintech
109307858a
Merge branch 'master' of git://github.com/inventree/InvenTree into bom_export_parameter_stock
2020-08-25 15:59:58 -05:00
Ben Charlton
7d6055f06f
Merge branch 'master' into feature-non-int-serial
2020-08-25 09:28:42 +01:00
Oliver
788d497e87
Merge pull request #931 from bcc/bug-serialize-no-location
...
Fix internal server error when serializing stock with no location
2020-08-25 08:38:35 +10:00
Ben Charlton
e0a744b01d
Remove no-longer-needed cast functions
2020-08-24 20:09:06 +01:00
Ben Charlton
9c2d13b487
test non-numeric serials are handled correctly for ranges
2020-08-24 20:04:10 +01:00
Ben Charlton
0da2682c68
handle non-int serial range suggestions cleanly
2020-08-24 20:00:19 +01:00
Ben Charlton
d5a374f1fd
Make serial number suggestion DB independent, handle mixed types more cleanly and test
2020-08-24 19:49:32 +01:00
Ben Charlton
9149aa1536
Fix internal server error when serializing stock with no location
2020-08-24 18:04:22 +01:00
eeintech
946d824995
Switched to ModelChoiceField
2020-08-24 11:41:14 -05:00
eeintech
6f89f7dc7f
Merge branch 'master' into show_potential_bom_items_stock
2020-08-24 10:35:59 -05:00
Ben Charlton
b6f9590d55
Add default config example to config template
2020-08-24 15:24:18 +01:00
Ben Charlton
988d263ef1
Allow custom authentication / middleware in config.yaml
2020-08-24 15:05:21 +01:00
Ben Charlton
471ece136e
Merge branch 'master' into feature-non-int-serial
2020-08-24 11:12:07 +01:00
Oliver Walters
78826dc20b
Merge remote-tracking branch 'inventree/master'
2020-08-23 21:21:18 +10:00
Oliver
2a4b9c6c5c
Merge pull request #929 from SchrodingersGat/label-enable
...
Label enable
2020-08-23 21:18:11 +10:00
Oliver Walters
ca1985e11a
PEP fixes
2020-08-23 21:10:45 +10:00
Oliver Walters
9a35293126
Remove PartFilterMixin class
2020-08-23 21:08:41 +10:00
Oliver Walters
ed5ad3c047
Rename 'part_filters' field to 'filters'
2020-08-23 21:05:54 +10:00
Oliver Walters
c849f618d5
Clean up implementation of test report matching
2020-08-23 21:03:29 +10:00
Oliver Walters
b7ae95686e
Add field "enabled" to Report template
2020-08-23 20:51:41 +10:00
Radek Hladik
f9149d041e
Collapse navbar on small screen
2020-08-23 10:56:29 +02:00
Oliver Walters
116d966d29
Delete "ReportTemplate" class
2020-08-23 09:10:56 +10:00
Oliver Walters
771b2117c4
Remove duplicated function
2020-08-23 09:08:24 +10:00
Oliver Walters
8f1af0f5f9
Add "enabled" field to Label class
...
- Only list labels which are enabled
- Allows labels to be hidden / disabled without being deleted
2020-08-23 09:07:15 +10:00
Ben Charlton
23cc3d9b06
Handle 'next serial' more gracefully
2020-08-21 19:17:58 +01:00
Ben Charlton
c31b30bf83
Fix simple tests
2020-08-21 18:53:51 +01:00
Ben Charlton
f7ed48809c
Support non-integer serial numbers
2020-08-21 17:36:49 +01:00
Ben Charlton
eeca3effee
Fix disabled form item from preventing stock location moves for items with serial numbers
2020-08-21 16:20:33 +01:00
Oliver Walters
98017cb8bd
Merge remote-tracking branch 'inventree/master'
2020-08-21 22:11:02 +10:00
Oliver Walters
05fae4be87
Are more methods to tasks.py:
...
- static
- update
- install
- key
- coverage
The functionality of setup.py is now included here!
2020-08-21 21:08:04 +10:00
Oliver Walters
59b3d8b5bc
Fix stocktake export
...
- Exclude MPTT fields
- Fix foreignkey field references
2020-08-21 20:08:47 +10:00
Oliver Walters
25cced3b90
Exclude MPTT fields from Part model resource
2020-08-21 20:08:16 +10:00
eeintech
9fa13aeae3
Show 'available_stock' in Part string representation
2020-08-20 15:38:41 -05:00
eeintech
89e63df1fb
Corrected style
2020-08-20 14:53:03 -05:00
eeintech
6fc275ca30
BoM export: added option to export part paremeters ( #126 ) and stocks ( #793 )
2020-08-20 13:53:27 -05:00
Oliver Walters
142a1462bb
Merge remote-tracking branch 'inventree/master'
2020-08-20 16:02:18 +10:00
Oliver Walters
90d34cdfcf
StockItem: Allow customer field to be blank
2020-08-20 14:54:55 +10:00
Oliver Walters
2f88cc9fe0
Merge remote-tracking branch 'inventree/master'
2020-08-20 14:48:16 +10:00
Oliver
4f1b469cee
Merge pull request #915 from SchrodingersGat/tex-response
...
Tex response
2020-08-20 14:14:24 +10:00
Oliver Walters
8e0dfa9c6f
PEP fix
2020-08-20 14:05:55 +10:00
Oliver Walters
64ae181bf6
Add some more context data
2020-08-20 14:01:41 +10:00
Oliver Walters
5a8804f4bc
If LaTeX template errors, return the raw LaTeX!
2020-08-20 13:57:29 +10:00
Oliver Walters
c1956d13b5
Merge remote-tracking branch 'inventree/master'
2020-08-20 09:04:17 +10:00
Oliver Walters
0aeb7ddbdf
Allow column show/hide on BOM table
2020-08-20 08:57:11 +10:00
Oliver Walters
41c4a5376b
Bugfix: Recursive BOM display
...
- Actually request recursively! (duh)
- Fix the idField and parentIdField for the BOM display (was incredibly wrong)
- Sub-rows are initially displayed in the "collapsed" state
2020-08-20 08:52:22 +10:00
Oliver Walters
6930456e2b
Merge remote-tracking branch 'inventree/master'
2020-08-19 14:19:43 +10:00
Oliver Walters
0faba39dfc
PEP: Remove unused variable
...
(cherry picked from commit e49a1c1ad2
)
2020-08-19 14:08:52 +10:00
Oliver Walters
7e829e88af
Add option for including supplier data for BOM export
...
(cherry picked from commit d0b5550c86
)
2020-08-19 14:08:47 +10:00
Oliver Walters
3d0012a3bf
Bugfix: accomodate missing manfufacturer links
...
If a supplier_part does not have an associated manufacturer, the code would break
(cherry picked from commit 965dba4739
)
2020-08-19 14:08:41 +10:00
eeintech
b5bc8935a2
Added manufacturer data to BoM export
...
(cherry picked from commit c7ddccc4ec
)
2020-08-19 14:08:34 +10:00
Oliver Walters
f8bb357e6c
Merge remote-tracking branch 'inventree/master'
2020-08-18 21:30:08 +10:00
Oliver Walters
1767ef7a3a
Fix issues with tree sorting
...
- Need to set parent ID based on the BOM items
- This is to prevent data duplication that was weird and dumb
2020-08-18 21:24:11 +10:00
Oliver Walters
82903d2bd6
BOM display is now heirarchical
2020-08-18 21:01:22 +10:00
Oliver Walters
4cd54203a2
Add jquery-treegrid plugin
2020-08-18 20:53:50 +10:00
Oliver Walters
37baec2db6
bootstrap-table: Add "extensions"
2020-08-18 20:53:05 +10:00
Oliver Walters
32133fecc7
Merge remote-tracking branch 'upstream/master'
2020-08-18 14:41:03 +10:00
Oliver Walters
92ac93aac5
More intelligent checking for circular BOM
...
- Check all the way down a BOM "tree"
- Validate BOM tree before allowing BOM submission
2020-08-18 14:17:59 +10:00
Oliver Walters
ca4d3df287
Update translation files
2020-08-18 14:01:40 +10:00
Oliver Walters
68fb599c73
Major improvements to BOM upload
...
- Column headings now match the values provided in BOM import template
- Add a new column for part selection, while displaying all imported data
- Better code documentation
- Improve data validation
- Allow decimal quantity (not just integer!)
- Better matching logic
2020-08-18 14:01:01 +10:00
Oliver Walters
7349b396ca
Merge remote-tracking branch 'upstream/master' into bom-import-export
2020-08-18 11:50:40 +10:00
Oliver Walters
476cc5f661
BOM upload: improve generation of "import" template
...
- Better field naming
- Remove some fields which are not required here
- Better description of what is going to happen
2020-08-18 11:47:27 +10:00
Oliver Walters
badc306f33
Merge remote-tracking branch 'upstream/master'
2020-08-18 10:39:24 +10:00
eeintech
783a94acce
Corrected MakeBomTemplate method's queryset
2020-08-17 16:42:28 -05:00
eeintech
84c0ec7937
BoM: added part matching based on IPN
2020-08-17 16:35:38 -05:00
eeintech
303157c586
Added part match auto-selection (if partial_ratio >= 100) to BoM part selection form
2020-08-17 14:10:24 -05:00
eeintech
685a58b807
Merge remote-tracking branch 'origin/master' into bom_dev
2020-08-17 12:05:54 -05:00
Oliver Walters
25d90f643a
Make BOM levels integers
2020-08-17 10:39:35 +10:00
Oliver
4dcd6ee136
Update version.py
2020-08-16 14:03:49 +10:00
Oliver
ab62f8fc59
Update version.py
...
Increment version number
2020-08-16 14:03:20 +10:00
Oliver
b5b882d3b6
Merge pull request #906 from SchrodingersGat/blabel
...
Label Printing Functionality
2020-08-16 14:02:38 +10:00
Oliver Walters
d52278e423
Icon tweak
2020-08-16 13:45:58 +10:00
Oliver Walters
da079b23dc
Fix duplicate label printing menu action
2020-08-16 13:43:59 +10:00
Oliver Walters
ccda637e3c
Fixes for barcode decoding
2020-08-16 13:42:27 +10:00
Oliver Walters
a4267f76e8
Fixes for barcode data rendering
2020-08-16 13:39:05 +10:00
Oliver Walters
2bbc65cc59
Add "brief" version of QR codes
...
- Use this to render to labels (as it contains much less information)
2020-08-16 13:29:38 +10:00
Oliver Walters
2f5e3efada
Update translations
2020-08-16 12:11:22 +10:00
Oliver Walters
1807ba4e7b
Add form for selecting label template for a StockItem
2020-08-16 12:10:58 +10:00
Oliver Walters
30e24f19d9
PEP fixes
2020-08-16 11:13:17 +10:00
Oliver Walters
cdde0f8c43
Add URL endpoint for downloading PDF labels
2020-08-16 11:12:21 +10:00
Oliver Walters
2b1d6c268c
Render to an in-memory PDF
2020-08-16 10:29:03 +10:00
Oliver Walters
18b3fd3256
Add context data to StockItemLabel model
2020-08-16 10:24:15 +10:00
Oliver Walters
aefd70ce49
Add admin interface for StockItemLabel
2020-08-16 09:29:45 +10:00
Oliver
eb2422e6be
Merge pull request #905 from SchrodingersGat/bom-depth
...
Allow user to set "depth" of exported multi-level BOM
2020-08-16 09:29:09 +10:00
Oliver Walters
a45902bd4f
Add "label" app
2020-08-16 09:28:12 +10:00