Hi Hari,
Please provide your code what you have wrote in get_p method and one more thing open the component and view go to config tab click on technical property of that field check whether the field is checked with the display mandatory property or not if the field is checked then unchecked that property.
Thanks & Regards,
Srinivas.