B6911 - Only fire afterInsert on new record (also fix afterUpdate, beforeInsert,… See merge request !96