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( {