fix: linter issue

This commit is contained in:
Nabin Hait
2026-06-03 17:38:39 +05:30
parent c271826130
commit 5adeca44da

View File

@@ -216,9 +216,9 @@ class AssetRepair(AccountsController):
doc.cancel()
def on_cancel(self):
self.asset_doc = frappe.get_doc("Asset", self.asset)
if self.get("capitalize_repair_cost"):
self.ignore_linked_doctypes = ("GL Entry", "Stock Ledger Entry") # nosemgrep
self.asset_doc = frappe.get_lazy_doc("Asset", self.asset) # nosemgrep
self.update_asset_value()
self.make_gl_entries(cancel=True)
self.set_increase_in_asset_life()