It is able to remove the block by using But how can I remove the tab which is added by using argument? Thanks.

<block class="Magento\Sales\Block\Adminhtml\Order\View\Tab\Creditmemos" name="sales_order_creditmemo.grid.container"/>
<action method="addTab">
                            <argument name="name" xsi:type="string">order_creditmemos</argument>
                            <argument name="block" xsi:type="string">sales_order_creditmemo.grid.container</argument>

You can use the removeTab method:

<referenceBlock name="sales_order_creditmemo.grid.container">
    <action method="removeTab">
        <argument name="name" type="xsi:string">order_creditmemos</argument>
| improve this answer | |
  <referenceBlock name="sales_order_invoice.grid.container" remove="true"/>

you need to override sales_order_view.xml file and place this

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.