chore: fix patch
diff --git a/erpnext/patches/v15_0/create_asset_depreciation_schedules_from_assets.py b/erpnext/patches/v15_0/create_asset_depreciation_schedules_from_assets.py
index 02ffa70..749225c 100644
--- a/erpnext/patches/v15_0/create_asset_depreciation_schedules_from_assets.py
+++ b/erpnext/patches/v15_0/create_asset_depreciation_schedules_from_assets.py
@@ -84,5 +84,5 @@
 			.set(ds.parent, asset_depr_schedule_name)
 			.set(ds.parentfield, "depreciation_schedule")
 			.set(ds.parenttype, "Asset Depreciation Schedule")
-			.where(ds.parent == depr_schedule.name)
+			.where(ds.name == depr_schedule.name)
 		).run()