Hi all — I’m running ERPNext (v15.63.0) and Frappe (v15.69.2) on a self-hosted server.
I’m using a Server Script of type Document Event on Stock Entry, set to trigger After Submit.
Even with only this code
import frappe
from datetime import datetime
frappe.log_error(“Test Script”, “Running”)
I am getting this error on submit…
ImportError: import not found
Possible source of error: Server Script
I have verified:
• Only one script is active
• It’s not disabled
• Other scripts without imports work fine
Is this expected in Frappe v15.69.2? Is there a setting, patch, or known workaround to allow basic imports like datetime?
Thanks in advance.