I am working on Magento 2.3.5 p-1
I have created a custom module that adds a mass action to the sales order grid, through a controller this action changes the order status to "customCancel" and the order state to Canceled using
order->setState(\Magento\Sales\Model\Order::STATE_CANCELED); but does not return the order stock to inventory.
Can someone guide me on how to do this? Thanks in advance