mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 20:15:44 +00:00
[UI] Bulk edit actions (#9320)
* Allow bulk selection of sales order shipment * Tweaks * Support bulk-edit for location parent and category parent * Allow more login attempts for playwright
This commit is contained in:
@ -1,13 +1,18 @@
|
||||
"""InvenTree API version information."""
|
||||
|
||||
# InvenTree API version
|
||||
INVENTREE_API_VERSION = 323
|
||||
INVENTREE_API_VERSION = 324
|
||||
|
||||
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
||||
|
||||
|
||||
INVENTREE_API_TEXT = """
|
||||
|
||||
v324 - 2025-03-17 : https://github.com/inventree/InvenTree/pull/9320
|
||||
- Adds BulkUpdate support for the SalesOrderAllocation model
|
||||
- Adds BulkUpdate support for the PartCategory model
|
||||
- Adds BulkUpdate support for the StockLocation model
|
||||
|
||||
v323 - 2025-03-17 : https://github.com/inventree/InvenTree/pull/9313
|
||||
- Adds BulkUpdate support to the Part API endpoint
|
||||
- Remove legacy API endpoint to set part category for multiple parts
|
||||
|
@ -21,7 +21,7 @@ import common.settings
|
||||
import company.models
|
||||
from generic.states.api import StatusView
|
||||
from importer.mixins import DataExportViewMixin
|
||||
from InvenTree.api import ListCreateDestroyAPIView, MetadataView
|
||||
from InvenTree.api import BulkUpdateMixin, ListCreateDestroyAPIView, MetadataView
|
||||
from InvenTree.filters import (
|
||||
SEARCH_ORDER_FILTER,
|
||||
SEARCH_ORDER_FILTER_ALIAS,
|
||||
@ -1178,7 +1178,7 @@ class SalesOrderAllocationMixin:
|
||||
return queryset
|
||||
|
||||
|
||||
class SalesOrderAllocationList(SalesOrderAllocationMixin, ListAPI):
|
||||
class SalesOrderAllocationList(SalesOrderAllocationMixin, BulkUpdateMixin, ListAPI):
|
||||
"""API endpoint for listing SalesOrderAllocation objects."""
|
||||
|
||||
filterset_class = SalesOrderAllocationFilter
|
||||
|
@ -226,7 +226,7 @@ class CategoryFilter(rest_filters.FilterSet):
|
||||
return queryset
|
||||
|
||||
|
||||
class CategoryList(CategoryMixin, DataExportViewMixin, ListCreateAPI):
|
||||
class CategoryList(CategoryMixin, BulkUpdateMixin, DataExportViewMixin, ListCreateAPI):
|
||||
"""API endpoint for accessing a list of PartCategory objects.
|
||||
|
||||
- GET: Return a list of PartCategory objects
|
||||
|
@ -27,7 +27,7 @@ from company.models import Company, SupplierPart
|
||||
from company.serializers import CompanySerializer
|
||||
from generic.states.api import StatusView
|
||||
from importer.mixins import DataExportViewMixin
|
||||
from InvenTree.api import ListCreateDestroyAPIView, MetadataView
|
||||
from InvenTree.api import BulkUpdateMixin, ListCreateDestroyAPIView, MetadataView
|
||||
from InvenTree.filters import (
|
||||
ORDER_FILTER_ALIAS,
|
||||
SEARCH_ORDER_FILTER,
|
||||
@ -365,7 +365,9 @@ class StockLocationMixin:
|
||||
return queryset
|
||||
|
||||
|
||||
class StockLocationList(DataExportViewMixin, StockLocationMixin, ListCreateAPI):
|
||||
class StockLocationList(
|
||||
DataExportViewMixin, BulkUpdateMixin, StockLocationMixin, ListCreateAPI
|
||||
):
|
||||
"""API endpoint for list view of StockLocation objects.
|
||||
|
||||
- GET: Return list of StockLocation objects
|
||||
|
Reference in New Issue
Block a user