API should automatically generate a barcode for a new Inventory when a new inventory is created.
Inventory
This will avoid the need to click on "Assign barcode" button in the UI.