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.
Please Contact us if you have any Odoo Implementation requirements to Hire dedicated Odoo developers or Odoo Development services from KTree. KTree is Best offshore Odoo development company with extensive experience in building Odoo ERP Modules & Integration.Request For Quote