Add track_inventory to permitted attributes.
Fix a typo
Fixes #5201