cancel
Showing results for 
Search instead for 
Did you mean: 

Fix Duplicating Creating Shipment

Fix Duplicating Creating Shipment

Hello, everybody!

I am porting a carrier plugin from magento 1 to magento 2 and I have been struggling with fixing an issue. I have Observer which listens to sales_order_save_after then creates a shipment. It's working fine as it creates a shipment and set tracking number but the problem that magento is also creating a shipment for the same order with empty data and tracking number! How to prevent this behavior? Like allow magento create a shipment, if it's only not a specific carrier or shipping method ...