Hook get ignored when serial no created by Stock entry!

i was trying to use hook to add some data to custom fields when a serial no created from a Stock entry
but it get ignores , yet when i open the serial no document and do any action it catch the hook method ? why it get ignored from Stock Entry ?