The inventory_changed advancement trigger is triggered when closing your inventory after crafting the respective item instead of being triggered instantly when you crafted the item and placed it in your inventory.
- Put the items required to craft a stone pickaxe in your inventory
- Revoke the "Getting an Upgrade" advancement
- Right click a crafting table and craft a stone pickaxe
→ The advancement is not made until you close your inventory