Peculiar behaviour by checkbox in a child table when set as read-only

Hello! I wanted to set a check box as readonly so that I can update programatically later. I have it in a child table doctype. I did it but it is due to some reason showing two checkboxes side by side only when editing the row. I do not know why. It doesn’t happen in a usual doctype. Please help me resolve this. Thanks.