From 21a09e74313d91a1abce6bd6dc9fb764ffd784af Mon Sep 17 00:00:00 2001 From: anandbaburajan Date: Tue, 27 Dec 2022 13:03:19 +0530 Subject: [PATCH] chore: fix patch --- .../v15_0/create_asset_depreciation_schedules_from_assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 02ffa70888a..749225c8585 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 @@ def update_depreciation_schedules(asset_name, asset_depr_schedule_name, fb_row_i .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()