mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-27 07:01:13 +01:00
fix: add asset activity after insert
This commit is contained in:
@@ -202,6 +202,7 @@ class Asset(AccountsController):
|
||||
self.db_set("booked_fixed_asset", 0)
|
||||
add_asset_activity(self.name, _("Asset cancelled"))
|
||||
|
||||
def after_insert(self):
|
||||
if (
|
||||
not frappe.db.exists(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user