Oliver Walters
34a374ce9a
Add try/except around callable default
2021-06-27 01:18:09 +10:00
Oliver Walters
0cc999410b
More unit test fixes
2021-06-27 01:03:54 +10:00
Oliver Walters
232899e0c4
Simpler implementation
2021-06-27 00:25:23 +10:00
Oliver Walters
ae1a1e139f
Further fixes for default API values
...
- Account for callable defaults
- Extra check in is_valid()
2021-06-27 00:01:40 +10:00
Oliver
ddbf863617
Merge remote-tracking branch 'inventree/master' into api-default-values
...
# Conflicts:
# InvenTree/InvenTree/serializers.py
2021-06-26 21:04:41 +10:00
Oliver
949c7dd81b
Set modal form title
2021-06-26 14:30:14 +10:00
d28d66795d
linked price break graphs
2021-06-25 07:41:00 +02:00
4921cd47f9
refactor for better readabilty
2021-06-25 07:40:01 +02:00
Oliver
76ec51a93b
Merge pull request #1722 from matmair/internal-price-op
...
full Internal price coverage
2021-06-25 07:37:06 +10:00
Oliver
b20af54b76
Create select2 instance for related field
2021-06-25 07:36:37 +10:00
b99af16bfd
preparing for price breaks diagrams
2021-06-24 22:13:56 +02:00
9ce5a9823e
added doc for internal price
2021-06-24 21:48:00 +02:00
abe00232f3
use internal price in more places
2021-06-24 21:47:11 +02:00
Oliver
04374c71c2
Annotate models with their API list view
...
- It will make sense, trust me
2021-06-25 00:17:58 +10:00
9f27a77689
price break js refactor
2021-06-24 01:19:09 +02:00
d7d080fb96
adding in manufacturer and supplier tables
2021-06-23 15:30:04 +02:00
761aa04aba
added bom-table
2021-06-23 12:16:33 +02:00
332c0a43fd
clearer headings
2021-06-23 12:16:04 +02:00
Oliver
70a073be21
Live update part image
2021-06-23 19:28:23 +10:00
Oliver
2e1ad0c245
Change some warnings to infos
2021-06-23 18:54:01 +10:00
Oliver
36e6b9f164
Set allow_null flag on image fields
2021-06-23 11:40:37 +10:00
Oliver
5ba7aeaa27
Fixes:
...
- Use DRF ImageField, not FileField
- Ensure that permissions get updated correctly in 'test' mode
- Allow file upload in the APITester class
2021-06-23 10:28:21 +10:00
522ca161d6
added permissions-check to bom
2021-06-23 01:26:07 +02:00
c8ff6ee0e2
removing old views
2021-06-23 01:11:25 +02:00
093a181751
initial structure for single pricing view
2021-06-23 01:07:07 +02:00
Oliver
878f26c770
Enable upload of company image via the API
2021-06-23 08:39:06 +10:00
Oliver
f199feb8d9
Use the part detail API for uploading a new image
2021-06-23 08:34:45 +10:00
Oliver
b8e4b58df0
Catch potential error updating image that does not exist...
2021-06-22 22:23:27 +10:00
Oliver
2fc7c3d883
fix typo
2021-06-22 22:16:11 +10:00
Oliver
e29594811b
Allow direct upload of images via the API
2021-06-22 22:09:30 +10:00
Oliver
979ef674d6
Update data for unit test fixtures
2021-06-22 13:24:03 +10:00
Oliver
eae9ff7d1d
More unit test fixes
2021-06-22 11:54:18 +10:00
Oliver
6d2cd78d29
Fixes for unit tests
2021-06-22 10:36:04 +10:00
Oliver
9475af62ae
Style fixes
2021-06-22 10:12:44 +10:00
Oliver
c62ba5eb12
Perform a "full_clean" on serialized model
...
- DRF does not by deault run validate_unique on the model
- Need to check if we are "creating" or "updating" a model
- Catch and re-throw errors in the correct format
- Unit tests
2021-06-22 10:09:19 +10:00
Oliver
c3fc04e872
Unit testing for part duplication
2021-06-22 09:35:34 +10:00
Oliver
a38835022a
Better management of unique constraint for Part
2021-06-22 09:33:07 +10:00
Oliver
40fcfe1f47
Reduce noise in logs
2021-06-22 09:32:36 +10:00
Oliver
8fd41f5ecf
Unit testing for default values
2021-06-21 21:46:22 +10:00
Oliver
5e5fc35655
Merge pull request #1688 from SchrodingersGat/supplier-part-parameters
...
Adds "parameters" for manufacturer parts
2021-06-21 16:39:15 +10:00
Oliver
04b216253d
Ok, that was a bad idea.
2021-06-21 11:30:20 +10:00
Oliver
637033cf7d
Merge pull request #1692 from matmair/part-table-cat-sort
...
Support sorting by category in part-table
2021-06-21 08:33:09 +10:00
80e47b6f76
addd in sorting for category
...
fixes #1689
2021-06-20 22:49:06 +02:00
a0b83d530c
refactor
2021-06-20 20:19:11 +02:00
59aae51652
show stock history starting by 1 element
2021-06-20 20:17:01 +02:00
Oliver
8a8b310195
Add some more inlines in the admin interface
2021-06-21 00:46:15 +10:00
Oliver
bea7ab7175
Add python version information to the "about" window
2021-06-21 00:25:27 +10:00
b86793703e
Merge branch 'part-import' of https://github.com/matmair/InvenTree into part-import
2021-06-18 23:14:48 +02:00
59e6cc1a10
Merge branch 'master' of https://github.com/inventree/InvenTree into part-import
2021-06-18 23:10:59 +02:00
Oliver
778aa0314d
Load and display build order allocation items via AJAX
2021-06-18 19:18:35 +10:00