Method for manufacturing a device (2) to be connected to a location associated with a defect (12) on a bone (1) of a patient, wherein the method comprises the steps of: - providing a numerical three-dimensional patient model of at least a part of the patient including the location on the bone with said defect; - determining a correction volume (3) in the patient model, wherein said correction volume is representative for a volume of defect-filling material (34); - designing the device on the basis of the patient model and the determined correction volume; and - manufacturing said device, wherein the step of designing of the device comprises: - designing at least one volume-contacting surface (21) on the basis of the determined correction volume such that the correction volume is at least partially enclosed by the bone and said volume-contacting surface; - designing at least one bone-contacting surface (22) arranged to contact a surface of the bone, wherein the bone-contacting surface is formed to be substantially congruent to said bone surface to ensure a unique fit of the device on said bone, and the device (2) comprises: - at least one volume-contacting surface (21) for at least partially enclosing a correction volume (3) of defect-filling material, wherein said correction volume is representative for a volume of defect-filling material which can at least partially fill said defect; - at least one bone-contacting surface (22) arranged to contact a surface of the bone, wherein the bone-contacting surface is formed to be substantially congruent to said bone surface (13) to ensure a unique fit of the device on said bone.L'invention concerne un procédé de fabrication d'un dispositif (2) devant être raccordé à un emplacement associé à un défaut (12) sur un os (1) d'un patient, le procédé comprenant les étapes consistant : - à fournir un modèle de patient numérique tridimensionnel d'au moins une partie du patient comprenant l'emplacement sur l'os comportant ledit défaut