brotherton-erpnext/erpnext/support/web_form/issues/issues.py

8 lines
144 B
Python

from __future__ import unicode_literals
import frappe
def get_context(context):
# do your magic here
if context.doc:
context.read_only = 1