Stock is not Updating in the case of after saving the item and update the opening stock

Stock is not Updating in the case of after saving the item and update the opening stock and valuation rate its not creating the stock entry for the corresponding item.working when creating item for the first time .How to fix this?

Opening stock is added when you create a new item. Once the item is created, the opening stock field will disappear, and you won’t be able to update it after the item creation.