mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 18:54:55 +00:00
fix: Creating Asset Activity while Importing Asset (#39113)
* fix: import asset not working on activity * chore: fix linting issue in asset_activity.py --------- Co-authored-by: Anand Baburajan <anandbaburajan@gmail.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
from frappe.utils import now_datetime
|
||||||
|
|
||||||
|
|
||||||
class AssetActivity(Document):
|
class AssetActivity(Document):
|
||||||
@@ -30,5 +31,6 @@ def add_asset_activity(asset, subject):
|
|||||||
"asset": asset,
|
"asset": asset,
|
||||||
"subject": subject,
|
"subject": subject,
|
||||||
"user": frappe.session.user,
|
"user": frappe.session.user,
|
||||||
|
"date": now_datetime(),
|
||||||
}
|
}
|
||||||
).insert(ignore_permissions=True, ignore_links=True)
|
).insert(ignore_permissions=True, ignore_links=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user