8 lines
144 B
Python
Raw Normal View History

2016-06-24 16:16:07 +05:30
from __future__ import unicode_literals
import frappe
def get_context(context):
# do your magic here
if context.doc:
context.read_only = 1