From dc0611642560e009bf7a2f49fcda1a62580d70d7 Mon Sep 17 00:00:00 2001 From: Khushi Rawat <142375893+khushi8112@users.noreply.github.com> Date: Wed, 2 Apr 2025 01:19:28 +0530 Subject: [PATCH] fix: pass instance explicitly in static method --- .../doctype/asset_depreciation_schedule/depreciation_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/assets/doctype/asset_depreciation_schedule/depreciation_methods.py b/erpnext/assets/doctype/asset_depreciation_schedule/depreciation_methods.py index daa3f0b0918..1b235b1fa78 100644 --- a/erpnext/assets/doctype/asset_depreciation_schedule/depreciation_methods.py +++ b/erpnext/assets/doctype/asset_depreciation_schedule/depreciation_methods.py @@ -77,7 +77,7 @@ class StraightLineMethod(Document): class WDVMethod(Document): @erpnext.allow_regional def get_wdv_or_dd_depr_amount(self, row_idx): - return self.calculate_wdv_or_dd_based_depreciation_amount(row_idx) + return WDVMethod.calculate_wdv_or_dd_based_depreciation_amount(self, row_idx) @staticmethod def calculate_wdv_or_dd_based_depreciation_amount(self, row_idx):