Commit Graph
100 Commits
Author SHA1 Message Date
OliverandGitHub 20b0e399c0 Merge pull request #1716 from SchrodingersGat/drf-api-forms
[WIP] API Forms
2021-07-03 22:14:26 +10:00
Oliver 3cc9299b41 Refactor SOLineItemCreate view 2021-07-03 21:56:29 +10:00
Oliver 699b21f6fd Remove broken URL 2021-07-03 21:46:08 +10:00
Oliver 889834b693 Refactor POLineItemCreate form 2021-07-03 21:43:22 +10:00
Oliver c524f754e9 Allow null values for purchase_price and sale_price 2021-07-03 21:27:03 +10:00
Oliver 25a80d2aa7 Fix form filters 2021-07-03 21:21:32 +10:00
Oliver 8e280b6328 Increment API version 2021-07-03 20:37:50 +10:00
Oliver 2b7805e668 PEP fix 2021-07-03 20:34:30 +10:00
Oliver 8d1928f181 Typo fix 2021-07-03 20:29:23 +10:00
Oliver ce703bf94b Adds detail API endpoint for StcokItemTracking model 2021-07-03 20:26:33 +10:00
Oliver 5c1fddd96d JS bug fix 2021-07-03 16:28:03 +10:00
OliverandGitHub 45704f7a8d Merge pull request #1747 from matmair/depleted-stock
Depleted stock on start page
2021-07-03 16:23:27 +10:00
Oliver 83256b1014 Refactor BomItemDelete form 2021-07-03 16:10:41 +10:00
Oliver 359e92cd8e Merge remote-tracking branch 'inventree/master' into drf-api-forms
# Conflicts:
#	InvenTree/InvenTree/static/css/inventree.css
2021-07-03 12:59:13 +10:00
OliverandGitHub 2b32f04af2 Merge pull request #1712 from matmair/one-pricing-view
One pricing view
2021-07-03 12:55:34 +10:00
Oliver 77c3aa5379 Use custom currency choices 2021-07-03 12:45:59 +10:00
Oliver 90a3a8a288 Merge remote-tracking branch 'inventree/master' into drf-api-forms 2021-07-03 12:35:40 +10:00
Oliver 55f8fefe79 Remove old test 2021-07-03 12:33:28 +10:00
OliverandGitHub d8f5cc7f56 Merge pull request #1744 from matmair/stock-table-has-price
Stock table filter: has purchase price
2021-07-03 12:05:29 +10:00
OliverandGitHub 1d5429f07e Merge pull request #1750 from matmair/stock-table-supplier-part
Stock table add supplier part column
2021-07-03 11:59:46 +10:00
OliverandGitHub 802294632d Merge pull request #1748 from matmair/email-warning
changes email-warning to yellow #1732
2021-07-03 09:09:51 +10:00
OliverandGitHub 2b90190230 Merge pull request #1746 from matmair/human-readable-cur
make currency selection options human-readable
2021-07-03 08:40:15 +10:00
Oliver 8c3a4b60ab Refactoring forms for order line items
- Required some fixes for money serializer
-
2021-07-03 01:17:29 +10:00
Oliver 1cdf03ef49 Added MinMoneyValidator to InvenTreeModelMoneyField
- Refactor edit and delete forms for PurchaseOrderLineItem
2021-07-03 00:34:41 +10:00
Oliver 993abd9d91 Refactor forms for sales orders 2021-07-03 00:14:36 +10:00
Oliver 984828f3bb Specify 'default' functions for 'reference' field in SalesOrder and PurchaseOrder
- Refactor CreatePurchaseOrder form
- Some migrations
2021-07-02 23:59:02 +10:00
Oliver 7e5c9aa043 Refactor PurchaseOrderEdit form 2021-07-02 23:04:53 +10:00
Oliver 5e9372f2d6 Add API endpoints for Owner model
- Will be necessary for PurchaseOrder, SalesOrder and BuildOrder forms
2021-07-02 22:45:42 +10:00
OliverGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ded0fb5353 L10 (#1740)
* updated translation base

* updated translation base

* New Crowdin updates (#1670)

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* updated translation base

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-07-02 22:13:14 +10:00
Oliver 2ff9b23647 Fixes for company serializer 2021-07-02 22:02:18 +10:00
Oliver 298d870b44 Refactor CompanyDelete view 2021-07-02 21:55:59 +10:00
Oliver 07910766b3 select2 fixes 2021-07-02 21:36:41 +10:00
Oliver a47948ffe0 Include model name in metadata 2021-07-02 21:18:02 +10:00
Oliver 2a4cbd6eb9 Refactor setRelatedFieldData function 2021-07-02 21:17:20 +10:00
Oliver 6d73265f0e Add support for custom placeholder text 2021-07-02 19:47:47 +10:00
Oliver 3756bd6668 CSS tweaks 2021-07-02 19:44:37 +10:00
Oliver 746a0210fe Add option to focus on a particular field when launching 2021-07-02 19:40:02 +10:00
Oliver c7f834e547 Display message when action is not allowed 2021-07-02 19:34:40 +10:00
Oliver 366a2d57c3 Improve docstring 2021-07-02 19:27:19 +10:00
Oliver 2e3bfd18cc Starting work on "secondary modal" functionality 2021-07-02 17:47:18 +10:00
Oliver 291149d733 New modal forms automatically work themselves out 2021-07-02 17:46:54 +10:00
Oliver 047b9d1ecd Capture enter key to submit form 2021-07-02 17:19:58 +10:00
Oliver 72526307ae Renderer for supplier part 2021-07-02 17:11:07 +10:00
Oliver 52952a8a8b Handle different form responses 2021-07-02 16:53:56 +10:00
OliverandGitHub 77f668b635 Merge pull request #1739 from SchrodingersGat/docker-fix
docker: Use a specific version of alpine
2021-07-02 14:51:45 +10:00
Oliver fa1644ed2c python -> python3 2021-07-02 13:07:42 +10:00
Oliver 9cdc5a1fa1 Explicitly install python3-pip 2021-07-02 12:59:54 +10:00
Oliver 56c3697e34 docker: Use a specific version of alpine 2021-07-02 12:57:37 +10:00
Oliver 9927b597c3 PEP fixes 2021-07-02 11:26:48 +10:00
Oliver 51ebe30754 Merge remote-tracking branch 'inventree/master' into drf-api-forms
# Conflicts:
#	InvenTree/company/forms.py
2021-07-02 11:26:09 +10:00
Oliver 00e921f505 More work on dynamic modal template 2021-07-02 11:13:24 +10:00
Oliver 3ff19f8c75 Refactorin' 2021-07-02 11:06:52 +10:00
Oliver 2f1dea1123 Modals can now be created programatically
- INFINITE MODALS
- API forms now create a new modal as required
2021-07-02 10:52:56 +10:00
OliverandGitHub d243356324 Merge pull request #1736 from matmair/money-update
Money updates
2021-07-02 08:34:20 +10:00
Oliver 74d2334f36 Merge remote-tracking branch 'inventree/master' into drf-api-forms 2021-07-01 22:08:10 +10:00
Oliver a771d7732b Icon tweak 2021-07-01 21:58:05 +10:00
Oliver e0f8310ca8 Adds the ability to "clear" a non-required field with an obvious button 2021-07-01 21:57:07 +10:00
Oliver 225162ab8e Add ability to delete multiple selected manufacturer part parameters 2021-07-01 17:20:06 +10:00
Oliver 8a29a3de0f PEP fixes 2021-07-01 17:01:52 +10:00
Oliver 9bd71c1184 Refactor deletion of multiple manufacturer part objects
- issues multiple DELETE requests via the API
2021-07-01 17:01:30 +10:00
Oliver 206d7bd96a Refactor edit and delete forms for ManufacturerPart 2021-07-01 16:28:46 +10:00
Oliver 96a2629fd2 Remove old URL endpoints 2021-07-01 16:07:42 +10:00
Oliver 870542e4c1 Refactor forms for ManufacturerPartParameter 2021-07-01 16:05:23 +10:00
Oliver bfc5a7dcf8 Refactor forms for PartTestTemplate model:
- Remove old forms
- Remove old views
- Add detail endpoint for the API
2021-07-01 14:44:23 +10:00
Oliver 9d1c1b98df PEP fix 2021-07-01 14:33:16 +10:00
Oliver bb0a72f235 Refactor forms for StockItemTestResult
- Add DETAIL endpoint for model
- Remove old views
- Remove old forms
2021-07-01 14:31:37 +10:00
Oliver 59b794f0e5 Cleanup old forms 2021-07-01 14:25:14 +10:00
Oliver 54731746d8 Render simple choice fields with select2 2021-06-30 23:18:50 +10:00
Oliver 770cd9a12d Fix for LocationSerializer 2021-06-30 22:10:15 +10:00
Oliver 30ac5dba55 Display attachment upload date 2021-06-30 17:44:23 +10:00
Oliver 9b4db43232 Refactoring "attachment" tables to use the API
- Part attachments
- StockItem attachments
- PurchaseOrder attachments
- SalesOrder attachments
- BuildOrder attachments
2021-06-30 17:40:44 +10:00
Oliver 682b2b4b2f Support rendering / updating of date inputs 2021-06-30 17:04:21 +10:00
Oliver a92fc7cf2c PEP fixes 2021-06-30 14:15:18 +10:00
Oliver 2b394174bc Refactor update and delete forms for SupplierPriceBreak 2021-06-30 14:14:31 +10:00
Oliver 09fff5b644 Refactor PriceBreakCreate form
- Handle non_field_errors
2021-06-30 14:07:15 +10:00
Oliver 8f47035a7b Refactor delete view for PartAttachment and StockItemAttachment 2021-06-30 12:58:41 +10:00
Oliver 4e23dbd0af Refactor delete views for SalesOrderAttachment and PurchaseOrderAttachment 2021-06-30 12:54:38 +10:00
Oliver 4d8e88c779 BuildAttachmentDelete form 2021-06-30 12:48:14 +10:00
Oliver 653e3cd135 Starting work on a DELETE form 2021-06-30 12:03:32 +10:00
Oliver 537c15081b Fix for PK lookup in API test 2021-06-30 11:12:16 +10:00
Oliver 9ea3e511b9 Refactor BuildAttachment views 2021-06-30 11:05:35 +10:00
Oliver a7d60cf5ad Exposes BuildOrderAttachment objects to the REST API 2021-06-30 10:49:33 +10:00
Oliver f67779c816 Unit test fixes 2021-06-30 10:37:38 +10:00
Oliver 712c9598d1 Refactor SalesOrderAttachment forms 2021-06-30 10:09:05 +10:00
Oliver 60d599b476 Refactor PurchaseOrderAttachment views 2021-06-30 10:03:54 +10:00
Oliver b946aedb5c Replace PartAttachmentEdit view 2021-06-30 09:49:30 +10:00
Oliver 238dccc071 Replace PartAttachmentCreate form 2021-06-30 09:45:36 +10:00
Oliver 8c439e52fd PEP fix 2021-06-30 09:41:13 +10:00
Oliver 54c9bd25a5 Add detail endpoint for StockItemAttachment 2021-06-30 09:40:54 +10:00
Oliver 87235b7e6f Replace StockItemAttachmentCreate form
- Also replace drag-and-drop
- Add 'hidden' option for form fields
- Adds renderer for StockItem model
2021-06-30 09:17:28 +10:00
Oliver 7d53bcb27c Convert StockItemEditStatus to use API forms 2021-06-30 08:52:53 +10:00
Oliver 43f26f2c65 Allow custom labels 2021-06-30 01:07:57 +10:00
Oliver 1f75530910 Specify custom help text for fields on the client side 2021-06-30 01:07:36 +10:00
Oliver 621f47e46c Replace "edit part category" form 2021-06-30 01:04:39 +10:00
Oliver c425f36a35 Remove dead class 2021-06-30 00:24:27 +10:00
Oliver 26eafe242c Replace PartImageUpload form 2021-06-30 00:18:25 +10:00
Oliver 293b5d4c07 Allow file and image fields
- Use FormData class
- Replace existing Company image upload form
2021-06-30 00:13:53 +10:00
Oliver 33ec91acc7 Add "default" from serializer field (if present)
- Overrides model default
- Set choices for currency serializer field
- Adds some unit testing
2021-06-29 23:14:39 +10:00
Oliver 8b3a497554 Remove unused Form 2021-06-29 23:05:37 +10:00
Oliver 6156fffd1d Remove broken URLs 2021-06-29 21:25:20 +10:00