The inventory mode is reset when adding a template before saving the host.
How to reproduce:
- Create a new host
- Go to the inventory tab, switch to "Automatic" (add some data, if you like)
- Go to the template tab and add a template
- Go back to the inventory tab: The mode is set back to "Disabled"