feat: 出入库明细支持撤回并删除-在一个事务

This commit is contained in:
caoqianming 2025-06-27 13:33:34 +08:00
parent 10b63cdad5
commit c054095f94
1 changed files with 1 additions and 0 deletions

View File

@ -292,6 +292,7 @@ class MIOItemViewSet(CustomListModelMixin, BulkCreateModelMixin, BulkDestroyMode
return super().perform_destroy(instance)
@action(methods=['post'], detail=True, perms_map={'post': 'mio.update'}, serializer_class=serializers.Serializer)
@transaction.atomic
def revert_and_del(self, request, *args, **kwargs):
"""撤回并删除