I want to allow the invoice save action once the order is in processing state for this i have to add some logics inside the Magento\Sales\Controller\Adminhtml\Order\Invoice save file. please advice me

  • please provide the code you want to add. easiest way is probably a observer or a plugin Commented Feb 22, 2019 at 12:21
  • @PhilippSander thank you so much for your reply.. i done with the plugin only. i made a mistake in preference type. ;) Commented Feb 22, 2019 at 14:18

1 Answer 1



create a file for this xx\yy\Controller\Adminhtml\Order\Invoice\Save.php inside the save.php file write your own logic.

  • can you please share your code ? Commented Aug 8, 2020 at 6:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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