Description:
Readonly is used to make a field non-editable. We can make a field readonly either by using Python or xml. In python we can make a field readonly by setting its attribute readonly to True in the field definition and in XML by giving readonly as 1 we can make a field readonly.