Oliver
77c3aa5379
Use custom currency choices
2021-07-03 12:45:59 +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
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
72526307ae
Renderer for supplier part
2021-07-02 17:11:07 +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
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
Matthias
3c6c9c59d6
added clean migration steps for all price fields
2021-07-01 07:11:15 +02:00
Matthias
fcdefc4f83
removing default_currency in fields
2021-07-01 00:40:26 +02:00
Matthias
3a57093b4e
replace MoneyFields with inherited classes
2021-07-01 00:13:38 +02: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
537c15081b
Fix for PK lookup in API test
2021-06-30 11:12:16 +10:00
Oliver
f67779c816
Unit test fixes
2021-06-30 10:37:38 +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
Oliver
170ed37d03
Delete CompanyCreate AJAX view
2021-06-29 21:20:53 +10:00
Oliver
c25967eff6
Replace CompanyCreate and CompanyEdit forms with AJAX form
...
- Adds the ability to specify an "icon" for each field
2021-06-29 21:17:48 +10:00
Oliver
cf0feffe26
Allow override of values from calling function
2021-06-29 20:44:44 +10:00
Oliver
ed2f21f583
Display field prefix element in form
2021-06-28 21:38:42 +10:00
Oliver
ac7564d069
Extract "limit_choices_to" options for relatedfields
...
- Specify as 'filters' for 'related field' type
- Extremely handy to be able to filter AJAX requests in a DRY manner!
2021-06-28 21:29:51 +10:00
Oliver
f3ed05a09e
Automatically associate ''filters' with relations
2021-06-28 20:13:18 +10:00
Oliver
0e9b82c475
Load default values into rendered form
2021-06-27 21:58:22 +10:00
Oliver
d80948369b
Include 'default' value in OPTIONS request for any fields with specified default values
2021-06-27 21:44:21 +10:00
Oliver
67f76c8bca
Merge remote-tracking branch 'inventree/master' into drf-api-forms
2021-06-27 09:26:23 +10:00
Oliver
04374c71c2
Annotate models with their API list view
...
- It will make sense, trust me
2021-06-25 00:17:58 +10:00
Oliver
82a6ff7772
Adds unit testing for fancy new metadata class
2021-06-23 20:58:05 +10:00
Oliver
f0db9bc3d5
Live update of Company image
2021-06-23 19:29:41 +10:00
Oliver
36e6b9f164
Set allow_null flag on image fields
2021-06-23 11:40:37 +10:00
Oliver
a866001ffe
Bump API version to 6
2021-06-23 08:40:51 +10:00
Oliver
878f26c770
Enable upload of company image via the API
2021-06-23 08:39:06 +10:00
Oliver
b8e4b58df0
Catch potential error updating image that does not exist...
2021-06-22 22:23:27 +10:00
Oliver
061a120af2
Merge pull request #1705 from SchrodingersGat/part-validation
...
API Validation fixes
2021-06-22 13:39:05 +10:00
Oliver
979ef674d6
Update data for unit test fixtures
2021-06-22 13:24:03 +10:00
Oliver
40fcfe1f47
Reduce noise in logs
2021-06-22 09:32:36 +10:00
Adam Walsh
d1a2ed9af1
Fix supplier part view/edit without a manufacturer
...
Fixes the following issues when a supplier part was created with an MPN but no manufacturer was assigned:
- Viewing a supplier part stock item
- Editing a supplier part stock item
2021-06-21 11:20:43 -04:00
Oliver
e0e560352e
Add forms / views for ManufacturerPartParameter CRUD
2021-06-21 16:14:58 +10:00
Oliver
70b6a3c13f
Display table of parameters
2021-06-21 00:39:18 +10:00