Commit Graph
100 Commits
Author SHA1 Message Date
Oliver Walters d0ccf8647d Add js linting to github workflow 2021-08-28 20:59:41 +10:00
Oliver Walters f57a31c9b5 Add a test framework script to pull down rendered javascript files
- Use the testing framework so we don't need to spin up a server
2021-08-28 20:46:51 +10:00
Oliver Walters 880a701881 eslint configuration file 2021-08-28 16:55:59 +10:00
Oliver Walters 62d877ba54 Adds script to pull down "rendered" versions of javascript files 2021-08-28 16:40:06 +10:00
OliverandGitHub e261fa6b29 Merge pull request #2024 from SchrodingersGat/category-param-fix
Simple fix for category parameter settings
2021-08-26 23:11:29 +10:00
Oliver Walters 3adf30a00c Simple fix for category parameter settings 2021-08-26 22:50:50 +10:00
OliverandGitHub e5de69cd96 Update version.py
Actually bump the API version
2021-08-26 22:13:13 +10:00
OliverandGitHub 320ca451cc Merge pull request #2023 from inventree/units-in-api
Add "units" to PartBriefSerializer
2021-08-26 22:12:27 +10:00
OliverandGitHub 610c05384b Merge pull request #2020 from SchrodingersGat/mpn-sorting-fix
Mpn sorting fix
2021-08-26 22:06:06 +10:00
Oliver Walters ec88415f3d Add "units" to PartBriefSerializer 2021-08-26 21:54:25 +10:00
Oliver ac8a0be74a Enable sorting by total_price 2021-08-26 08:48:19 +10:00
Oliver bad246bca6 Fixes for ordering of stock table 2021-08-26 08:24:31 +10:00
Oliver 212a7eeed1 Disable filtering for total_price (as this is not a database field!) 2021-08-26 07:59:47 +10:00
Oliver 8660f13ef5 Allow sorting by purchase price (unit price) 2021-08-26 07:50:19 +10:00
OliverandGitHub 9b6b5825f3 Merge pull request #2021 from SchrodingersGat/table-col-fix
Change name of purchaseorder line item table
2021-08-26 07:02:04 +10:00
Oliver 51992a92c1 Change name of purchaseorder line item table
- Was conflicting with purchaseorder table
- Saved column selections were being overridden
2021-08-25 18:00:32 +10:00
Oliver 4b8ef2ad62 Implements custom filtering back end 2021-08-25 17:46:42 +10:00
OliverandGitHub 75152fab0e Merge pull request #2018 from SchrodingersGat/file-upload-fix
Fix for file upload bug
2021-08-25 15:05:32 +10:00
Oliver 9c9407b1ab Add unit test for catching bug
- Turns out that in an image was uploaded with more than ~2000 vertical pixels it would crash
- Smaller images worked fine?
2021-08-25 14:48:45 +10:00
Oliver dcc8acb49a Data must be copied in a particular way 2021-08-25 14:12:26 +10:00
Oliver 44ab487b62 Fix for file upload bug 2021-08-25 12:05:41 +10:00
Oliver c9756d30bd Add a custom OrderingFilter class
Needs further work
2021-08-25 12:04:15 +10:00
Oliver 2923589c4a Fix sortName for purchase order line item table 2021-08-25 12:02:25 +10:00
OliverandGitHub 28878b4b0d Update feature_request.md
Slight tweaks
2021-08-24 22:30:01 +10:00
OliverandGitHub 18297cd2fb Update bug_report.md
Slight tweaks to bug report template
2021-08-24 22:28:42 +10:00
OliverandGitHub bdcc66bac7 Merge pull request #2009 from matmair/templates
RFC: Issue Templates
2021-08-24 22:26:55 +10:00
OliverandGitHub 0073a77e16 Merge pull request #2008 from matmair/fix-for-1986
Fix for 1986
2021-08-24 14:13:50 +10:00
OliverandGitHub 7f75c610ef Merge pull request #2012 from SchrodingersGat/search-preview-click
Wrap search preview results in <a>
2021-08-24 13:47:55 +10:00
Oliver 36a0496dd7 Wrap search preview results in <a>
- Allows clicking with middle mouse (for e.g.) to open in new tab
2021-08-24 13:11:37 +10:00
OliverandGitHub 44ecd958a2 Merge pull request #2011 from SchrodingersGat/boolean-form-fixes
Fix for "part" form fields
2021-08-24 12:10:00 +10:00
OliverandGitHub 56f27aae23 Merge pull request #2010 from SchrodingersGat/sales-order-tab-fix
Hide "Sales Orders" tab if part is not salable
2021-08-24 12:03:09 +10:00
Oliver 8fc79f45a3 Fix for "part" form fields
- Specify "default" rather than overriding "value"
2021-08-24 11:55:58 +10:00
Oliver 7646535aaf Hide "Sales Orders" tab if part is not salable 2021-08-24 11:48:42 +10:00
OliverandGitHub 5349addc06 Merge pull request #2005 from eeintech/ui_updates
Updated color of `new` and `add` UI buttons
2021-08-24 08:12:45 +10:00
OliverandGitHub f136c974cf Merge pull request #2003 from SchrodingersGat/edit-purchase-prices
Edit purchase prices
2021-08-23 22:54:12 +10:00
Oliver 90d0b8b15d Bump API version 2021-08-23 21:45:40 +10:00
Oliver 5d4f35958d Point table at the new read-only field 2021-08-23 21:45:32 +10:00
Oliver bb8b85c375 Separate purchase_price and purchase_price_currency for StockItem serializer
- Add "purchase_price_string" for a read-only stringified representation
- Unit testing
2021-08-23 21:44:12 +10:00
Oliver d267d04bed Allow validation of empty money values 2021-08-23 21:43:31 +10:00
Oliver f96051d863 Replace print statement with a logger warning 2021-08-23 21:39:54 +10:00
Oliver 8662e6a109 Fix a super annoying validation issue
- Was throwing opaque "too many values to unpack" error
- Simply needed the name of the field.
2021-08-23 21:39:00 +10:00
OliverandGitHub 1fb76b9987 Merge pull request #1999 from matmair/turn-of-functions
Disable functions in navbars
2021-08-23 20:29:28 +10:00
OliverandGitHub fd1dd792c6 Merge pull request #1957 from matmair/bpm-purchase-price
BOM - show purchase price
2021-08-23 11:07:30 +10:00
OliverandGitHub 87a41c7e39 Merge pull request #2000 from SchrodingersGat/dev-conf-fix
Fix for docker development env file
2021-08-23 09:10:25 +10:00
Oliver 47524f6ea3 Fix for docker development env file 2021-08-23 08:39:09 +10:00
OliverandGitHub a5f26c7f09 Merge pull request #1998 from bobek/patch-1
Fix for production docker environment
2021-08-23 08:38:04 +10:00
OliverandGitHub b6df623554 Merge pull request #1997 from SchrodingersGat/new-po-from-order
Refactor buttons in "order parts" wizard
2021-08-23 00:49:27 +10:00
Oliver Walters 174b7ba7f2 Fix for "new purchase order" button 2021-08-23 00:28:36 +10:00
Oliver Walters 449e0c0af2 Refactor button in first step of "order parts" wizard
- "new supplier part" button was broken
- Was linked to the old "launchModalForm" code
- Now calls createSupplierPart
2021-08-23 00:17:45 +10:00
OliverandGitHub 3cf06b4960 Merge pull request #1995 from SchrodingersGat/delete-unused-images
remove some unused images
2021-08-23 00:11:39 +10:00
Oliver Walters f2e58ebbdd remove some unused images 2021-08-22 23:54:43 +10:00
OliverandGitHub 370fbea396 Merge pull request #1987 from matmair/fix-for-1986
Disable table sorting when order is fixed
2021-08-22 23:47:21 +10:00
OliverandGitHub 51de0a982a Merge pull request #1990 from matmair/fix-tooltip-linebreak
Fix tooltip linebreak
2021-08-22 08:19:54 +10:00
OliverandGitHub 8646c73021 Merge pull request #1980 from matmair/housekeeping
Housekeeping
2021-08-20 09:02:33 +10:00
OliverandGitHub 5bd31f11eb Merge pull request #1978 from matmair/fix-translate
Fix translations stats - task
2021-08-20 09:01:50 +10:00
OliverandGitHub 831ccec399 Merge pull request #1981 from matmair/coverage-to-setup
Merge coverage settings
2021-08-20 09:01:12 +10:00
OliverandGitHub 414d2dbc96 Merge pull request #1977 from eeintech/company_templates
Fixed company templates
2021-08-20 07:47:29 +10:00
OliverandGitHub c16ce925dd Merge pull request #1973 from SchrodingersGat/delete-expired-sessions
Run periodic (daily) task to clear out expired sessions
2021-08-19 16:53:19 +10:00
Oliver f0415640d5 Run periodic (daily) task to clear out expired sessions 2021-08-19 16:34:57 +10:00
OliverandGitHub c3048a1bf1 Merge pull request #1970 from SchrodingersGat/entrypoint
Entrypoint
2021-08-19 12:12:01 +10:00
Oliver 9ed2025021 Add a TODO for future reference 2021-08-19 11:14:13 +10:00
Oliver 52bdfe5465 Env interpolation doesn't seem to work in the CMD 2021-08-18 20:52:14 +10:00
Oliver eeac561b9b typo fix 2021-08-18 17:07:23 +10:00
Oliver 2095d66677 Fix entrypoint / cmd for production server 2021-08-18 16:29:54 +10:00
Oliver 79d7a9f922 fix typo in dockerfile 2021-08-18 15:16:22 +10:00
Oliver 41db0ff60d Need to specify python3 2021-08-18 14:58:16 +10:00
Oliver db477bceab typo fix 2021-08-18 14:47:34 +10:00
Oliver d756579a06 Split production environment variables out into a .env file 2021-08-18 13:02:36 +10:00
Oliver c1ea6dbb9b Remove commented out functionality from the entrypoint command 2021-08-18 12:28:09 +10:00
Oliver c2af401854 Pin base python package requirements
- Require invoke to be installed before we can run "invoke update"
2021-08-18 12:03:24 +10:00
Oliver 8fea9bc645 Re-add docker file git version info 2021-08-18 11:25:19 +10:00
Oliver 7bfddd6d51 Simplify init scripts
Single script init.sh which performs the following tasks:
- Creates required directory structure
- Activates python venv (if required)
- Waits for database connection
- Runs command
2021-08-18 09:52:27 +10:00
Oliver 3b8ee48581 Fix env defines in dockerfile 2021-08-18 09:34:09 +10:00
Oliver da834d8bcc Reduce cruft in logs 2021-08-18 00:04:38 +10:00
Oliver b48db6f8fe Dockerfile fixes 2021-08-17 23:15:05 +10:00
Oliver 187c9b0971 Add server init script
- Taken (mostly) from https://github.com/inventree/InvenTree/pull/1949
2021-08-17 23:10:57 +10:00
Oliver 8b66babd49 Refactor dockerfile
- Ref: https://github.com/inventree/InvenTree/pull/1949
- Squash all apk commands into single line
- Drop to inventree user rather than running as root
- Separate entrypoint and cmd for each target
- Set the INVENTREE_PY_ENV variable in development mode
2021-08-17 22:58:44 +10:00
OliverandGitHub b6e97f06dd Merge pull request #1968 from SchrodingersGat/docker-internal-vars
Cleanup docker vars for dev setup
2021-08-17 21:18:09 +10:00
Oliver 0294a1c323 Fix for staticfile collection
- Was generating a *lot* of warning messages
- Ref: https://github.com/django-compressor/django-compressor/issues/720
2021-08-17 21:02:45 +10:00
Oliver 895f9f3ce0 Pull debug level out into the .env file 2021-08-17 20:45:57 +10:00
Oliver d5d89c67b1 Error out if the static or media directories are not properly defined 2021-08-17 20:42:19 +10:00
Oliver a474000361 Fix critical error in dockerfile
- Don't' be putting no spaces in!
2021-08-17 20:29:48 +10:00
Oliver 7bf3229595 Add comment to docker-compose file 2021-08-17 20:00:54 +10:00
Oliver 07857c3088 Simplify dev-config.env file
- Don't need to re-specify the internal docker variables
- Add comments
2021-08-17 19:59:32 +10:00
Oliver 206743b58d Add a default value for INVENTREE_WEB_ADDR 2021-08-17 19:58:55 +10:00
OliverandGitHub a5808d4360 Merge pull request #1967 from SchrodingersGat/always-translate
Run translation step as part of "update"
2021-08-17 19:52:58 +10:00
Oliver 92aace1278 Run translation step as part of "update" 2021-08-17 18:22:07 +10:00
OliverandGitHub d6c9ff41ff Merge pull request #1964 from eeintech/import_part_nav
Added navbar on part import page
2021-08-17 09:59:35 +10:00
OliverandGitHub fa163b8866 Merge pull request #1962 from SchrodingersGat/attachment-edit
Attachment edit
2021-08-16 11:14:14 +10:00
Oliver 23b2b56de4 StockItemAttachment 2021-08-16 10:56:00 +10:00
Oliver 6141ddc3eb SalesOrderAttachment and PurchaseOrderAttachment 2021-08-16 10:53:28 +10:00
Oliver f8b22bc7b7 Refactor BuildAttachment model 2021-08-16 10:49:31 +10:00
Oliver d9f29b4a70 Updates for InvenTree serializer classes
- Catch and re-throw errors correctly
2021-08-16 10:41:26 +10:00
Oliver 3dcf1746e6 Functionality for renaming attached files 2021-08-16 10:41:02 +10:00
Oliver ff8dcabb12 New custom serializer for handling attachments 2021-08-15 22:43:52 +10:00
OliverandGitHub 81a8aac623 Merge pull request #1961 from SchrodingersGat/tweaks
Small tweaks here and there
2021-08-15 22:10:09 +10:00
Oliver 1998dabe9b Small tweaks here and there 2021-08-15 21:47:37 +10:00
OliverandGitHub 4061693522 Merge pull request #1959 from SchrodingersGat/settings-context
Provide global_settings and user_settings as context objects
2021-08-15 12:57:15 +10:00
Oliver 8861ffad81 PEP fixes 2021-08-15 12:06:31 +10:00
Oliver cef09acd54 Partial reversion of some stuff 2021-08-15 12:05:53 +10:00