Skip to content

Commit

Permalink
fix: add asset activity after insert
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinhait committed Dec 11, 2024
1 parent b8481d3 commit 00225ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/assets/doctype/asset/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down

0 comments on commit 00225ce

Please sign in to comment.