From 00225ce51d6c326dce156f485c29f2eb6529672b Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 11 Dec 2024 10:48:50 +0530 Subject: [PATCH] fix: add asset activity after insert --- erpnext/assets/doctype/asset/asset.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/assets/doctype/asset/asset.py b/erpnext/assets/doctype/asset/asset.py index c51533ad5ab0..9c64d80227bf 100644 --- a/erpnext/assets/doctype/asset/asset.py +++ b/erpnext/assets/doctype/asset/asset.py @@ -198,6 +198,7 @@ def on_cancel(self): self.db_set("booked_fixed_asset", 0) add_asset_activity(self.name, _("Asset cancelled")) + def after_insert(self): if ( not frappe.db.exists( {