2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 13:10:57 +00:00

Expand possibilities for variant conversion

- Ref get_conversion_options
This commit is contained in:
Oliver Walters
2021-05-27 12:35:55 +10:00
parent 3a36e800c0
commit c2fe5e08b4
4 changed files with 60 additions and 2 deletions

View File

@ -1373,7 +1373,7 @@ class StockItemConvert(AjaxUpdateView):
form = super().get_form()
item = self.get_object()
form.fields['part'].queryset = item.part.get_all_variants()
form.fields['part'].queryset = item.part.get_conversion_options()
return form