Oliver
0f8c279aa2
Add some unit testing for the new model
2021-10-13 22:27:10 +11:00
Oliver
ea4c4c514f
Add uniqueness checking for the BomItemSubstitute model
2021-10-13 22:01:32 +11:00
rocheparadox
0742fb063c
comment cleanup
2021-10-13 10:58:36 +05:30
Oliver
37bd5c0507
Add serializer and API endpoint for BomItemSubstitute class
2021-10-13 13:58:41 +11:00
rocheparadox
4fddc656c4
removed unused import
...
added unit tests for PART_NAME_FORMAT
2021-10-12 19:51:21 +05:30
rocheparadox
2bf51b0ac3
Added PART_NAME_FORMAT to Inventree settings and exposed the same in settings window with a validator
2021-10-12 19:06:23 +05:30
Oliver Walters
4eb8c60ee0
Add new BomItemSubstitute model
2021-10-12 22:22:49 +11:00
rocheparadox
2d77b21a4e
PART_NAME_FORMAT is introduced to display the names of parts in custom format. - For Feature Request InvenTree#2085
...
full_name construction in part.js is obsolete/redundant since the same is constructed in backend and sent through api response
2021-10-11 22:21:12 +05:30
Oliver
e7d78db87b
Fixes for unit tests
2021-10-05 10:53:11 +11:00
Oliver
ae0efe73d1
Further improvements to build allocation form
...
- Auto-allocation button ignores outputs which are complete
- StockItem API allows filtering by BomItem
- Quantity inputs are now auto-filled
- Display progress bar in the modal form
2021-10-05 08:25:10 +11:00
Matthias
cb1e7a6cc5
only process purchase_price if prices present
2021-08-19 23:22:58 +02:00
Matthias
a2ffd06abf
calculate purchase price for part
2021-08-13 17:49:58 +02:00
Oliver Walters
6d42cfab75
Add model validator to prevent illegal names for PartParameterTemplate
...
(cherry picked from commit 93805a87e011b45a446b1faeae6ab80257420879)
2021-08-07 21:23:52 +10:00
Oliver Walters
aaf394ca7a
PEP fixes
2021-08-05 00:26:21 +10:00
Oliver Walters
dd78464a74
remove unused function
2021-08-05 00:25:47 +10:00
Oliver Walters
b04f22fc53
CreatePart form now uses the API
...
- Simplify the way category parameter templates are copied
2021-08-04 23:27:16 +10:00
Oliver
afde997cf9
Expose part parameters to Part label templates
2021-07-21 22:05:52 +10:00
Oliver
9cf372f633
PEP fixes
2021-07-21 21:24:18 +10:00
Oliver
df48df8119
Catch recursive tree error for part / variant relationship
2021-07-21 21:10:31 +10:00
Oliver
dad9239a1c
Add instance-specific filters to API OPTIONS data
2021-07-21 20:59:55 +10:00
Oliver
b04a403081
subclass TreeManager
2021-07-20 22:15:49 +10:00
Oliver
cb0b7209ec
Add custom "list" function back in
...
- Actually does make a significant difference to query speed
2021-07-20 22:12:01 +10:00
Oliver
84fc2785d6
Create a custom Manager class for the Part model
...
- Always perform prefetch_related calls
2021-07-20 21:26:51 +10:00
Matthias Mair
c2ce569506
Merge branch 'inventree:master' into bom-internal
2021-07-19 21:51:18 +02:00
8d2e910323
style fix
2021-07-19 21:50:06 +02:00
Oliver
bf2774eb21
Add numerical validation step for BomItem
2021-07-10 13:48:44 +10:00
Oliver
cbf0e0bd4a
Refactor forms for editing and deleting a PartParameter
...
- PartParameters now loaded using the API, not pre-rendered
2021-07-09 01:56:04 +10:00
Oliver
376428b80b
Add regex IPN filter for Part API
2021-07-08 17:02:45 +10:00
Oliver
798bc17311
Merge remote-tracking branch 'inventree/master' into drf-api-forms
2021-06-29 09:57:03 +10:00
e4a9d56ba0
style fixes
2021-06-27 14:26:51 +02:00
4f726931a6
adds in money-conversion helper
2021-06-27 14:18:37 +02:00
67128c308b
fixing typo
2021-06-27 12:26:02 +02:00
Oliver
67f76c8bca
Merge remote-tracking branch 'inventree/master' into drf-api-forms
2021-06-27 09:26:23 +10: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
rgilham
c6fd2281d6
Allow BOM pricing to be valid when using internal pricing
2021-06-24 02:13:55 +02:00
Oliver
6d2cd78d29
Fixes for unit tests
2021-06-22 10:36:04 +10:00
Oliver
a38835022a
Better management of unique constraint for Part
2021-06-22 09:33:07 +10:00
Oliver
04b216253d
Ok, that was a bad idea.
2021-06-21 11:30:20 +10:00
4f3bfe569a
added in internal prices in price calculations
2021-06-07 05:25:13 +02:00
81f00753c6
style
2021-06-05 17:24:04 +02:00
768080f9a0
Adding internal functions to use internal prices
2021-06-05 17:06:58 +02:00
0d93c96f2a
adding internal price breaks as in #1606
2021-06-05 17:01:49 +02:00
Oliver Walters
5c71f04360
Add "allow_variants" field to BomItem
2021-06-01 13:59:01 +10:00
Oliver Walters
c2fe5e08b4
Expand possibilities for variant conversion
...
- Ref get_conversion_options
2021-05-27 12:35:55 +10:00
Matthias Mair
e59f467c79
Merge branch 'master' into spaces!
2021-05-08 12:27:19 +02:00
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
1b7ade9405
adding in missing parts for full saleprice
2021-05-05 23:47:46 +02:00
Oliver Walters
0fbf39f1bc
More fixes
2021-04-20 10:59:28 +10:00