Matthias
9d5b90190b
style + merge fix
2021-05-26 13:18:07 +02:00
Matthias Mair
859a3178a4
Merge branch 'master' into part-import
2021-05-26 13:08:58 +02:00
Matthias
421b0a896d
AjaxView for reuse of FormViews
2021-05-26 13:04:21 +02:00
Matthias
002706849c
enrich context with form if not set
2021-05-26 12:20:37 +02:00
Matthias
4319ba16af
Settings to show import-button
2021-05-26 09:20:50 +02:00
eeintech
93bfe4c5f1
Added 'Custom Exchange Rate' boolea setting
...
Removed Fixer.io exchange rate backend
2021-05-25 11:19:07 -04:00
eeintech
654d4ecf46
Merged @SchrodingersGat ExchangeRateHost integration work
2021-05-25 10:34:20 -04:00
Oliver Walters
619cba6007
Currency: Use ExchangeRateHost backend by default, rather than fixer.io
...
- No longer support fixer.io as it requires an API key and does not support "base" currency
2021-05-25 10:37:53 +10:00
eeintech
747b0554e1
Ready for review
2021-05-20 13:45:26 -04:00
Oliver Walters
01d444279c
Add setting for fixer.io API key
2021-05-18 22:11:24 +10:00
Matthias
64f8846e99
generalising for done()
2021-05-18 10:47:56 +02:00
Matthias
ad4902ea44
restucture
2021-05-18 10:19:35 +02:00
Matthias
cb0ef30eff
form overrides
2021-05-18 10:17:19 +02:00
Matthias
92f8bd36f1
inherited setup method
2021-05-18 01:55:47 +02:00
Matthias
46723f42ca
Merge branch 'master' of https://github.com/inventree/InvenTree into part-import
2021-05-18 00:57:10 +02:00
Matthias
508099e536
style fixing
2021-05-16 19:53:01 +02:00
Matthias
3a5b4ab74b
crispy forms for FileManagementFormView
2021-05-16 16:00:02 +02:00
Matthias
b9c73b1e60
simpler code
2021-05-16 15:58:35 +02:00
Matthias
8168db8061
implementation for part import
2021-05-16 15:57:57 +02:00
Matthias
90ae281387
adding in optional headers
2021-05-16 15:50:13 +02:00
Matthias
941ac25d53
style fixes
2021-05-15 08:45:01 +02:00
Matthias
888154e30b
added todo for cleaner implemention
2021-05-15 01:01:57 +02:00
Matthias
f136f90e12
config for all form-fields
2021-05-15 00:59:47 +02:00
Matthias
8effdffe6f
templates and FileManagement config
2021-05-15 00:57:18 +02:00
eeintech
a64ab5956b
Removed leftover print
2021-05-13 16:07:57 -04:00
eeintech
22249206d2
Fixed duplicate check
2021-05-13 16:06:57 -04:00
eeintech
e9c4ce8c5f
Added support for reference and notes fields
2021-05-11 17:11:09 -04:00
eeintech
ba561d6d19
Fixed import for excel formats
2021-05-11 14:06:38 -04:00
eeintech
a093118856
Few more fixes
2021-05-11 11:02:54 -04:00
eeintech
10eb69caf9
Merge branch 'master' of github.com:inventree/InvenTree into multi_part_forms
2021-05-11 10:22:34 -04:00
eeintech
c9e77edf04
Almost there?
2021-05-10 17:31:29 -04:00
eeintech
6d8f94619b
Improved template render, raised bar for automatic field matching
2021-05-10 12:52:34 -04:00
eeintech
f0932040ee
Fixed form validation for previous step, hide tab depending on order status, added purchase_price field
2021-05-10 11:42:22 -04:00
Matthias
f931ba405b
style fixes
2021-05-08 21:08:12 +02:00
Matthias
89e0856824
fix for deleting items
...
in step 2 not working in step 3
2021-05-08 21:05:02 +02:00
Matthias
e6372fd600
added translations
2021-05-08 20:54:23 +02:00
Matthias
a0d9bf692e
simpler code - same function
2021-05-08 20:53:26 +02:00
Matthias Mair
e59f467c79
Merge branch 'master' into spaces!
2021-05-08 12:27:19 +02:00
eeintech
88000200b3
Merged master and resolved conflicts
2021-05-07 18:02:40 -04:00
eeintech
ceccdf3909
Now creating PurchaseOrderLineItem instances!
2021-05-07 18:00:30 -04:00
eeintech
fbf24621f3
Getting there...
2021-05-07 16:46:10 -04:00
eeintech
6e269ae41a
Now displaying item match table
2021-05-07 13:23:10 -04:00
eeintech
4f942fd9f7
Working towards item match form
2021-05-06 17:07:22 -04:00
eeintech
e31452a6ad
Match field step is now managed through form
2021-05-06 16:05:58 -04:00
Matthias
f2b0717d10
removes all lines consisting only of spaces
...
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
Matthias
1a227faec4
abstracting get_price
2021-05-05 23:42:52 +02:00
eeintech
9773fee50b
Validation of matching fields is working
2021-05-05 12:40:48 -04:00
eeintech
b4342d6203
Fixed templates, not sure why can't keep FileManager across forms... and also need to save form data
2021-05-04 17:35:27 -04:00
eeintech
64fb492b97
Added match parts step, need to process fields data
2021-05-04 14:45:52 -04:00
eeintech
7cdf0af04a
Added upload file step
2021-05-04 12:20:57 -04:00
eeintech
373898d43e
Added step description and crispy form tag
2021-05-04 10:28:00 -04:00
eeintech
b847604f15
Started implementation of multi-step form for purchase order file uplod
2021-05-03 17:30:33 -04:00
Matthias
e668577d97
fix as noted in #1481
2021-04-18 12:31:17 +02:00
Matthias
d49977bed3
initial implementation as described in #1463
2021-04-15 14:51:11 +02:00
Oliver Walters
9c38d67b52
Merge remote-tracking branch 'upstream/master' into django-q
...
# Conflicts:
# InvenTree/InvenTree/status.py
# InvenTree/templates/about.html
2021-04-07 22:29:47 +10:00
Matthias
efd14fca64
made translation lazy
2021-04-04 22:47:01 +02:00
Matthias
446bc06c1b
switched translation methode to lazy
2021-04-03 04:01:40 +02:00
Oliver Walters
731ec25b24
Merge remote-tracking branch 'inventree/master' into django-q
...
# Conflicts:
# .github/workflows/style.yaml
# .travis.yml
# InvenTree/InvenTree/settings.py
2021-03-31 22:17:38 +11:00
Oliver
57289fe141
Merge pull request #1410 from SchrodingersGat/image-downloader
...
Image downloader
2021-03-18 11:10:07 +11:00
Oliver Walters
15678f789c
Add global setting to enable download of files / images from remote URL
2021-03-17 08:40:30 +11:00
eeintech
b152f7041b
Add setting to disable IPN editing after part is created (web only)
2021-03-12 10:30:31 -05:00
Oliver Walters
18defcff16
Read version number from GitHub
2021-03-11 19:56:22 +11:00
Oliver Walters
648d322f54
Style fixes
2021-02-23 14:24:09 +11:00
Oliver Walters
8717be66fc
Configure number of "recent items" shown on index page
2021-02-23 14:15:12 +11:00
Oliver Walters
8972a51bd6
Fixes for integer validator for inventree setting
2021-02-23 14:12:16 +11:00
Oliver Walters
098b494047
Add option to disable stock item grouping
2021-02-19 11:31:38 +11:00
Oliver Walters
6cc0880b4a
Add INVENTREE_BASE_URL setting
...
- Also adds callable validator!
2021-02-16 15:31:04 +11:00
Oliver Walters
30d95e1511
Add 'REPORT_DEBUG_MODE' setting
...
- If set, reports are printed in raw HTML
- Not pretty, but useful for debugging output of rendered template
2021-02-06 17:36:22 +11:00
Oliver Walters
dbaa0fc300
Add default page size for reports
...
- A4 / Legal / Letter
- Use this for the default page size for InvenTree reports
2021-02-06 17:11:20 +11:00
Oliver Walters
a0e7d37a19
Add setting for enabling / disabling test reports
2021-02-04 21:15:19 +11:00
Oliver Walters
51a33e5dca
Add setting to enable / disable barcode support
...
(Default = True)
2021-01-28 20:18:03 +11:00
eeintech
7d5571ba5b
Merged changes from master
2021-01-14 08:52:56 -05:00
Oliver Walters
1dc2636e45
Add option to show part quantity in various forms
...
Enabling this option can make BOM item forms *very* slow!
2021-01-14 15:20:42 +11:00
eeintech
587bf26d94
Fixed style
2021-01-08 14:23:35 -05:00
eeintech
2f78c7c036
Updated stock tests quantities
2021-01-08 14:05:53 -05:00
eeintech
f26f1c38a2
Merged master
2021-01-07 13:50:29 -05:00
Oliver Walters
e5b346e7fa
PEP fixes
2021-01-06 23:09:26 +11:00
Oliver Walters
ba915da22b
Filter StockItem API by staleness
2021-01-06 22:20:54 +11:00
Oliver Walters
d0fb69e67d
Add option to enable / disable stock expiry feature
...
- Simply hides fields in form views
2021-01-05 08:50:07 +11:00
Oliver Walters
1335c85de1
Edit new stock settings on settings page
2021-01-05 00:59:10 +11:00
Oliver Walters
e715ea5d79
Merge remote-tracking branch 'inventree/master' into stock-expiry
...
# Conflicts:
# InvenTree/common/models.py
2021-01-05 00:58:32 +11:00
Oliver Walters
213d6550d3
Add new setock settings
2021-01-05 00:54:05 +11:00
Oliver Walters
0f9c4703cf
Update unit testing
2021-01-03 23:33:47 +11:00
Oliver Walters
b05504e1c4
Add PART_VIRTUAL setting
2021-01-03 23:13:58 +11:00
Oliver Walters
9fa37a9156
Improve visualisation of global settings
2021-01-03 22:57:39 +11:00
eeintech
3ff76fbdab
Merging master and resolved conflict
2020-12-18 17:08:37 -05:00
Oliver Walters
13e924cc05
Fix default value for PO and SO codes
2020-12-18 16:10:55 +11:00
eeintech
de1dfdcc38
Improved naming of new setting and variables
2020-12-02 13:38:53 -05:00
eeintech
2c38be2d13
Added global setting and updated stock item templates
2020-12-01 15:54:05 -05: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
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 Walters
ae7fbd6112
Add PEP8-naming extension for flake
...
- Enforcing python naming checks
2020-11-12 21:53:04 +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
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
Francois
a7444a9926
Merge branch 'master' into categories_parameters
2020-11-11 06:40:11 -05: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
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
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
a6028f027a
Add setting to allow or prohibit duplicate IPN values
2020-11-10 09:03:26 +11:00
Oliver Walters
7286281a06
Fix for unit testing
2020-11-10 07:14:38 +11:00
Oliver Walters
c95f124578
Add some helper magic for setting objects
...
- If the setting is defined as a "bool" then the returned value is automatically cast to a bool
- Add some more unit testing
2020-11-09 23:44:54 +11:00
Oliver Walters
75ab7b247b
Push part settings into part/settings.py
...
- Use the user-configurable defaults in the database model itself
- This means they are observed even when using the API / etc
2020-11-09 23:16:04 +11:00
Oliver Walters
8149759852
Add some more part options which set the default values for the following fields:
...
- Purchaseable
- Salable
- Trackable
2020-11-09 20:26:19 +11:00
eeintech
1c14c2237a
Moved category templates processing to Part save() method
2020-11-04 09:52:26 -05:00
eeintech
34b784d1e4
Added setting, checkbox (PartCreateView only) and hook to create part parameters from category templates
2020-11-02 13:14:31 -05:00
Oliver Walters
5908890726
Create setting if it does not exist
2020-10-25 22:07:11 +11:00
Oliver Walters
7d95faa4f5
Cleanup code
2020-10-25 21:43:33 +11:00
Oliver Walters
432ecc1d96
Display boolean values as checkboxes
2020-10-25 21:33:13 +11:00
Oliver Walters
3a325399c6
Use a checkbox input when editing a boolean setting
2020-10-25 21:00:06 +11:00
Oliver Walters
f1e8afa314
Add boolean validator
2020-10-25 09:36:58 +11:00
Oliver Walters
4d96b385b1
Add page for global settings
2020-10-25 08:17:41 +11:00
Oliver Walters
b57a78dea4
Add some context data to the view for editing a setting
2020-10-25 08:10:52 +11:00
Oliver Walters
e3f5e8fbb1
PEP fixes
2020-10-25 08:04:04 +11:00
Oliver Walters
3e17bf3316
Edit setting directly
2020-10-25 08:02:46 +11:00
Oliver Walters
10758a9626
Improvements for global settings
...
- Name and description are defined in models.py
- Lookup functions for name / description / units / default
- Shortcut template for rending settings
- More unit testing
2020-10-25 07:49:38 +11:00
Oliver Walters
4193d2e7fe
Except IntegrityError
...
- This error may be thrown if the correct migrations have not been applied
2020-10-20 19:52:04 +11:00
Oliver Walters
406d7bcf80
Load build order prefix setting
2020-10-20 08:41:08 +11:00
Oliver Walters
7aa473712f
Remove unused setting page
2020-10-20 08:32:00 +11:00
Oliver Walters
226a91718b
Add a simple unit test for the settings model
2020-10-20 08:29:06 +11:00
Oliver Walters
c6e61c20fe
Generate default settings for all InvenTreeSetting object
2020-10-20 08:24:23 +11:00
Oliver Walters
06040f94ee
Remove "description" field from InvenTreeSettings key:value fields
2020-10-20 00:02:54 +11: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
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
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
Oliver Walters
3eb585df27
fixes for unit testing
2020-04-06 21:01:24 +10:00
Oliver Walters
071c317bae
Add 'InstanceName' setting
...
- Will be auto-generated if it does not already exist
2020-04-06 19:28:08 +10:00
Oliver Walters
066d69215f
Catch a ProgrammingError if table does not exist
2020-02-18 10:44:01 +11:00
Oliver Walters
50fee1bfe5
More work on translations
2020-02-12 10:25:46 +11:00
Oliver Walters
41336bd549
Fixes
2020-02-03 21:28:47 +11:00
Oliver Walters
356b6cf15b
Load default settings on InvenTree launch
2020-02-03 20:51:53 +11:00
Oliver Walters
4746a3ccff
Bootstrapify the table
2019-09-15 23:11:06 +10:00
Oliver Walters
2c1a744c2d
Display singleton settings in the settings tab
...
- Only visible to 'staff' user
2019-09-15 23:09:58 +10:00
Oliver Walters
098cd0ec44
Add description field
2019-09-15 23:07:45 +10:00
Oliver Walters
3e33326120
Add the InvenTreeSetting model
...
- Storage of singleton settings in key:value pairs
2019-09-15 22:46:24 +10:00
Oliver Walters
f707dd3430
Currency model admin now supports import / export
2019-09-13 23:02:54 +10:00
Oliver Walters
f24496c5a2
Enforce at least one base currency to be selected
2019-09-07 22:42:08 +10:00
Oliver Walters
55669c79c2
Delete a currency from the currency settings view
2019-09-07 20:22:30 +10:00
Oliver Walters
3188b0ab18
Edit currency from settings view
2019-09-07 20:19:35 +10:00
Oliver Walters
31562826f4
Add modal form for creating a new currency
2019-09-07 20:06:04 +10:00
Oliver Walters
6752bdc1c6
Sort currency API
2019-09-07 19:28:20 +10:00
Oliver Walters
9726ea4f99
Add serializer / API for currency objects
2019-09-07 19:18:18 +10:00
Oliver Walters
9f91797f42
Simple test case for currency
2019-09-03 09:19:37 +10:00
Oliver Walters
32d09d2d37
Add default value for currency
2019-09-03 09:10:36 +10:00
Oliver Walters
7824b8561d
Create a currency model
2019-09-03 09:07:03 +10:00
Oliver Walters
aeb25e4c34
startapp common
2019-09-03 08:30:14 +10:00