In Odoo for customer intensive process variants are available that works as well for purchase process also. Navigate to products from Purchase>>Products>> Products.
Now in Variants you can add attribute and then attribute value. Based on the combination products will get created and you can update inventories and references for them.
Use below screen-grab as the reference to apply variants in your odoo.