Closed DS1705 closed 1 year ago
yes it is possible with the inventree.part.BomItem.create(api, data= {part, sub_part, quantity})
method. You need at least the pk of the part you want to add the bom item to, the pk of the part you want to assign and the quantity.
is there also away to do it with a bom file
with a bom file you could either use the web-ui to upload it directly or you have to write yourself a python script which reads in the bom file and then uses this api to upload them.
okay thanks for the information
is there a way to add bom items to an assembly from python code? with a BOM file or single item