Oliver Walters
447f0b0ed7
Update translations
2020-12-16 19:03:04 +11:00
Oliver Walters
0500036d0a
settings.py - typo fix
2020-12-16 16:58:40 +11:00
Oliver Walters
261a9af4f5
Typo fix
2020-12-16 16:32:20 +11:00
Oliver Walters
a9310d4a39
Add a #TODO in code
2020-12-16 16:16:07 +11:00
Oliver Walters
a8704a05d6
PEP style fixes
2020-12-16 16:15:39 +11:00
Oliver Walters
597bf8be73
Add date input to build target_date
2020-12-16 16:13:38 +11:00
Oliver Walters
6ef4325eac
Javascript formatting
2020-12-16 15:55:42 +11:00
Oliver Walters
1a07ae0936
Render link rather than just text
2020-12-16 15:48:41 +11:00
Oliver Walters
17d23fa47c
Add overdue builds to the index page
2020-12-15 23:34:28 +11:00
Oliver Walters
c8c50af54b
Filter builds by "overdue" status
2020-12-15 23:31:19 +11:00
Oliver Walters
51da26d21d
Filter builds by "overdue" status
2020-12-15 23:27:59 +11:00
Oliver Walters
802dd5174c
Add "target_date" for Build model
...
- Add "overdue" status to Build serializer
2020-12-15 23:24:37 +11:00
Oliver Walters
f11348c965
Improve rendering for login page
2020-12-15 22:39:57 +11:00
Oliver Walters
297bfd776c
Pre-select a template if only one matching one exists
2020-12-15 12:31:02 +11:00
Oliver Walters
ef032d406f
Bugfix for stock report filter
2020-12-15 11:57:52 +11:00
Oliver
980cb9522b
Merge pull request #1162 from SchrodingersGat/gunicorn-conf
...
Update default gunicorn conf file
2020-12-14 11:00:57 +11:00
Oliver Walters
55b7cd3d6a
PEP fix
2020-12-14 10:44:38 +11:00
Oliver Walters
648595cf18
Hide purchase price field for non-purchaseable parts
2020-12-14 09:55:39 +11:00
Oliver Walters
d609e881c2
Update default gunicorn conf file
2020-12-14 09:43:07 +11:00
eeintech
1ef5a2b481
Display permission levels for each ruleset in Group admin list view
2020-12-10 15:38:48 -05:00
Oliver Walters
47d38e1cca
Change delete behaviour for parent build item
...
- was causing database integrity errors when a parent build existed
2020-12-01 10:24:51 +11:00
Bjoern Biesenbach
95f62d529f
Fix sidenav in stocklist
2020-11-30 18:30:51 +01:00
Oliver Walters
ea2f5009c8
Vastly improved speed of BOM upload
...
- Was calculating the stock levels for *every* part, for *every* drop down
- Many many many calls were being made
- Just remove stock count entirely from the drop-down menus
2020-11-27 14:40:30 +11:00
Oliver
a5e6ac2300
Merge pull request #1148 from SchrodingersGat/order-parts
...
Order parts
2020-11-27 12:28:04 +11:00
Oliver Walters
50a88e4826
Revert "Add extra context to SupplierPartCreate form"
...
This reverts commit 5f8f0232a9
.
2020-11-27 11:19:16 +11:00
Oliver Walters
6c68197e61
Allow part ordering from build view
2020-11-27 11:18:58 +11:00
Oliver Walters
7068f70811
Fixes for 'order parts' form
...
- Sometimes the part pk was not being retrieved properly
2020-11-27 11:18:45 +11:00
Oliver Walters
607cc90ce0
Add extra context to SupplierPartCreate form
...
(cherry picked from commit 5f8f0232a9
)
2020-11-27 11:18:23 +11:00
Oliver Walters
5f8f0232a9
Add extra context to SupplierPartCreate form
2020-11-27 11:17:55 +11:00
Oliver Walters
56f05e2604
Fixes for 'non field' errors in forms
...
- Fixes issue where non-model fields would not show error text
2020-11-27 10:42:01 +11:00
Oliver Walters
083d7671d0
Bug fix for BOM table
...
If the BOM for part included a BomItem with the same PK as the top-level part,
the bootstrap-tree-grid library borked
Probably for good reason, too!
So we now ensure that the top-level key is unique
2020-11-24 21:19:19 +11:00
Oliver Walters
e3231bbedb
Hide "pricing" information in the BOM table
2020-11-24 20:58:18 +11:00
Oliver Walters
b5d75d6e6a
PEP fixes
2020-11-24 11:56:51 +11:00
Oliver Walters
ce82579930
Cleanup getRequiredParts function
2020-11-24 10:18:07 +11:00
Oliver Walters
371ec582e1
Cleanup queryset for BomItemEdit view
2020-11-24 09:43:49 +11:00
Oliver Walters
3391db506a
Cleanup queryset for BomItemCreate view
2020-11-24 09:43:32 +11:00
Oliver Walters
af9b88de11
Fix for BomItem clean function
...
Handle the case where the sub_part does not exist
2020-11-24 09:33:26 +11:00
Oliver
73259c0bcb
Merge pull request #1140 from SchrodingersGat/request-frequency
...
Reduce duplicate function calls in custom context parser
2020-11-20 11:40:10 +11:00
Oliver Walters
20e8161038
Reduce duplicate function calls in custom context parser
2020-11-20 08:29:06 +11:00
eeintech
11745ebd6c
Removed one too many indent
2020-11-19 15:32:42 -05:00
eeintech
4768c9cbb3
Fixed validation of SupplierPart edit form by forcing the value of single_pricing field
2020-11-19 15:31:39 -05:00
Oliver Walters
4049c8e915
Adds framework for "server health" display
...
- Adds global context object "system_healthy" (boolean)
- Framework for running system health checks
- Updated system info forms
- Displays warning next to user menu if system health errors exist
(cherry picked from commit ce6d626ab39147fc389de90815ca8baae2385d82)
2020-11-19 12:36:54 +11:00
Oliver Walters
599220a931
Fixes for custom SQL queries
...
- Don't use double quotes!
- NO NO NO!
- Single quotes only
2020-11-19 09:15:16 +11:00
Oliver Walters
24fd520ec3
Smallt tweaks for the Stock table
2020-11-18 15:03:51 +11:00
Oliver Walters
6144d7e209
Fix for StockItem creation form
...
- purchase_price field was required (should not be!)
- Fixed some validation issues
- Cleaned up form implementation
2020-11-17 15:29:44 +11:00
eeintech
ac2797c7a1
Improved API endpoint for category parameter templates
2020-11-16 16:10:00 -05:00
Oliver
d8e7c2a932
Update version.py
2020-11-15 16:53:27 +11:00
Oliver
20f6964b1f
Update version.py
2020-11-15 16:51:50 +11:00
Oliver
771efecaa2
Merge pull request #1127 from SchrodingersGat/settings-view-unit-test
...
Extra unit testing for settings forms / views
2020-11-14 09:19:31 +11:00
Oliver Walters
2e842503e6
Fix try statement
2020-11-14 07:39:51 +11:00
Oliver Walters
b738f8b143
Try transaction.atomic
2020-11-13 22:22:02 +11:00
Oliver Walters
aae1400929
Mayyyyyyyyyyyyybe?
2020-11-13 21:37:39 +11:00
Oliver Walters
5f9758e85f
More fixes
2020-11-13 21:01:30 +11:00
Oliver Walters
03e852f957
Remove custom save method
2020-11-13 20:22:28 +11:00
Oliver Walters
f0777ead92
Removed eprint statements
2020-11-13 14:39:28 +11:00
Oliver Walters
0f42916521
Improve settings.py
...
- Load database config from either config.yaml or environment variables
- Mix and match, if you want!
- Move to use logging module rather than just printing stuff
- Error if required database parameters are not required
2020-11-13 13:38:01 +11:00
Oliver Walters
ee70e27f7d
Change function name
2020-11-13 13:21:43 +11:00
Oliver Walters
01ff562dcd
Extra unit testing for settings forms / views
2020-11-13 11:50:58 +11:00
Oliver
1d4b826d03
Merge pull request #1124 from eeintech/fix_nocategory_templates_error
...
Check that category was selected before fetching templates
2020-11-13 10:41:51 +11:00
Oliver
d777549a1a
Merge pull request #1123 from eeintech/fix_form_errors
...
Fixed disabling of form errors messing-up with global settings validation
2020-11-13 09:59:57 +11:00
eeintech
d4ac35b9aa
Check that category was selected before fetching templates
2020-11-12 16:52:22 -05:00
eeintech
80b70fd2df
Fixed disabling of form errors messing-up with global settings
2020-11-12 16:38:35 -05:00
Oliver Walters
362437e75e
PEP fixes
2020-11-13 07:28:21 +11:00
Oliver Walters
f239c8f8c8
Add missing migration file
2020-11-12 22:04:50 +11:00
Oliver Walters
ae7fbd6112
Add PEP8-naming extension for flake
...
- Enforcing python naming checks
2020-11-12 21:53:04 +11:00
Oliver Walters
47cbf3071d
Add option to add a single-quantity price-break when creating a new SupplierPart object
...
- Add unit testing!
2020-11-12 21:36:32 +11:00
Oliver Walters
534f43872f
Bug fix for SupplierPart table
2020-11-12 20:14:10 +11:00
Oliver Walters
fd79f1ea0e
Fixes for 'single pricing' for SupplierPart
2020-11-12 19:46:19 +11:00
Oliver Walters
6e7224ee7c
Add "purchase price" field to PurchaseOrderLineItem table
2020-11-12 18:05:24 +11:00
Oliver Walters
0988040172
Catch exception where InvenTree setting object is referenced but the database is not migrated yet
2020-11-12 18:04:50 +11:00
Oliver Walters
cb3c86f87a
Merge remote-tracking branch 'inventree/master' into currency-support
...
# Conflicts:
# InvenTree/InvenTree/settings.py
# InvenTree/InvenTree/urls.py
# InvenTree/templates/InvenTree/settings/tabs.html
# InvenTree/users/models.py
# requirements.txt
IMPORTANT: Had to merge some migration files due to different migrations applied on the part model tables
2020-11-12 17:24:48 +11:00
Oliver Walters
96ef5e1bde
Travis fixes
2020-11-12 15:37:21 +11:00
Oliver Walters
fe9749ba4f
Add missing fixture for settings
2020-11-12 14:54:03 +11:00
Oliver Walters
21315096d4
Further unit testing fixes
2020-11-12 14:53:49 +11:00
Oliver Walters
1738df9042
Update unit tests
2020-11-12 14:48:57 +11:00
Oliver Walters
ec8d8e5a64
Add more invoke commands:
...
- export-records: Exports all database records to external file
- import-records: Imports database records from external file
- import-fixtures: Fills the database with dummy records
2020-11-12 13:31:27 +11:00
Oliver Walters
4a8170079e
Remove code which automatically created settings objects on server launch
2020-11-12 12:31:03 +11:00
Oliver Walters
b7187c5e06
Fixes for purchase order table displays
2020-11-12 12:27:01 +11:00
Oliver Walters
391eeb0e46
Specify default currency when creating a new stock item
2020-11-12 11:50:59 +11:00
Oliver Walters
51d2d85c26
When creating a new price break for a supplier part, default to using the currency code specified for the supplier company
2020-11-12 11:14:50 +11:00
Oliver Walters
1532be9c1e
Add 'currency' option for company
...
- e.g. an external supplier might have a default currency
- Adds a form input which only allows selection of allowed currency codes
- Add unit testing for currency validation
2020-11-12 11:02:10 +11:00
eeintech
b4fa56fd96
Fixed PART_CATEGORY_PARAMETERS duplicate (bad merging... oopsy)
2020-11-11 12:40:03 -05:00
eeintech
bfdda847c4
Updated part migration reference in 0054
2020-11-11 11:18:10 -05:00
Francois
a7444a9926
Merge branch 'master' into categories_parameters
2020-11-11 06:40:11 -05:00
Oliver Walters
039a7badd1
A little whoopsie-doo:
...
- Part.clean() was incorrectly referencing a BomItem when it should have been referencing BomItem.part
2020-11-11 16:09:14 +11:00
Oliver Walters
56765d3f5a
Fix for unit testing
2020-11-11 15:19:15 +11:00
Oliver Walters
6c667937c5
Add requirement for django-error-report
...
- Provides an error log viewer in the admin interface at /admin/error_report/error/
- Allows viewing of error logs even in a remote production environment (i.e. no access to command line)
2020-11-11 14:10:12 +11:00
Oliver Walters
ebac06ebee
Add 'single_pricing' form to the EditSupplierPartForm
...
- Idea here is to automatically create a unit-pricing price-break when a new SupplierPart is created
2020-11-11 13:55:25 +11:00
Oliver Walters
fc89501a62
Fix for SQL cursor query
...
- What works in SQLite don't necessarily fly with the big boys
2020-11-11 08:06:14 +11:00
Oliver Walters
5567ad07fd
Update tests and translations
2020-11-11 00:31:39 +11:00
Oliver Walters
a19cf1f27a
PEP fixes
2020-11-11 00:26:59 +11:00
Oliver Walters
4dff18e4a6
Remove common_currency model entirely
...
- A lot of views / pages / etc needed to be updated too
- Now uses django-money fields entirely
- Create a manual rate exchange backend (needs more work!)
2020-11-11 00:21:06 +11:00
Oliver Walters
1fc2ef5f18
Custom migration for PartSellPriceBreak
2020-11-10 22:31:46 +11:00
Oliver Walters
83582ae87f
Add custom migration for the part_supplierpricebreak model
...
- Copies across existing pricing data
- Yikes
2020-11-10 22:25:05 +11:00
Oliver Walters
e4f2eecb3b
Remove defunct 'build_order' field from StockItem model
...
- This is now handled by the new-and-improved build system, no longer required
2020-11-10 20:12:39 +11:00
Oliver Walters
978fd7c683
Implement default currency selection
...
- Add 'choices' option to InvenTreeSetting class
- Add support for ChoiceField in InvenTreeSetting form
2020-11-10 17:08:08 +11:00
Oliver Walters
48c20c600a
List supported currencies in the configuration template
2020-11-10 16:28:55 +11:00
Oliver Walters
734436b02e
Add integration of django-money
...
- Proper currency support
- Add PurchasePrice field to StockItem model
- This keeps track of both the price and the currency
- Display purchase price on the stockitem detail page
2020-11-10 16:22:42 +11:00
Oliver
9d9ef5fc9c
Merge pull request #1116 from SchrodingersGat/duplicate-ipn
...
Add setting to allow or prohibit duplicate IPN values
2020-11-10 10:52:30 +11:00
Oliver Walters
a6028f027a
Add setting to allow or prohibit duplicate IPN values
2020-11-10 09:03:26 +11:00