Email Notification for Stock entry workflow

I have enabled workflow for Stock Entry. Draft and then waits for approval from approver user, when someone approves, workflow status changed to Approved.
Now, If I enable email notifications for SE based on workflow changes, email works as expected. Problem is when SE is created from backend code, then also email is sent. I dont want to send notification when document is created from backend. How to achieve this?