mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	@@ -153,6 +153,8 @@ def associate_manufacturers(apps, schema_editor):
 | 
			
		||||
        if name in links.keys():
 | 
			
		||||
            print(" - Part[{pk}]: Mapped '{n}' - manufacturer <{c}>".format(pk=part_id, n=name, c=links[name]))
 | 
			
		||||
 | 
			
		||||
            manufacturer_id = links[name]
 | 
			
		||||
 | 
			
		||||
            query = f"update part_supplierpart set manufacturer_id={manufacturer_id} where id={part_id};"
 | 
			
		||||
            result = query.execute()
 | 
			
		||||
            return True
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user