mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00: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)
|
self.db_set("booked_fixed_asset", 0)
|
||||||
add_asset_activity(self.name, _("Asset cancelled"))
|
add_asset_activity(self.name, _("Asset cancelled"))
|
||||||
|
|
||||||
|
def after_insert(self):
|
||||||
if (
|
if (
|
||||||
not frappe.db.exists(
|
not frappe.db.exists(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user