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:
parent
82b96d3688
commit
5e4693763a
@ -3,6 +3,7 @@
|
||||
|
||||
import frappe
|
||||
from frappe.model.document import Document
|
||||
from frappe.utils import now_datetime
|
||||
|
||||
|
||||
class AssetActivity(Document):
|
||||
@ -30,5 +31,6 @@ def add_asset_activity(asset, subject):
|
||||
"asset": asset,
|
||||
"subject": subject,
|
||||
"user": frappe.session.user,
|
||||
"date": now_datetime(),
|
||||
}
|
||||
).insert(ignore_permissions=True, ignore_links=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user