Multiple work orders (duplicates) are being created from production plan

There needs to be some validation to hide/disable the button once you have generated the work orders from a production plan.
otherwise, Check out the video.