Now product availability is totally controlled by inventory items.
Suppose you have two inventory items in a product like the following screen-shot.
When you publish this product two child-post will be created in
Inventory post type for these two inventory items with the model name as child post tile.
Then availability is controlled with these child posts of the inventory items.