<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <!-- Disable plugin that deducts stock on credit memo save -->
    <!-- vendor/magento/module-inventory-sales/etc/di.xml -->
    <type name="Magento\Sales\Api\CreditmemoRepositoryInterface">
        <plugin name="deduct_source_item_quantity_on_refund" disabled="true"/>
    </type>
    <type name="Magento\SalesInventory\Model\Order\ReturnProcessor">
        <plugin name="process_return_product_qty_on_credit_memo" disabled="true"/>
    </type>
</config>
