Inconsistent validation for attach_image fields between list view settings and doctype customization.
The issue reports a conflict where attach_image fields are allowed in list view settings but forbidden in doctype customization. The fix requires aligning validation logic between these two components.
I was configuring manufacturer logos to show in list view, I added a small client side script and configured my list view settings through the GUI, and everything worked perfectly.
Later when attempting to customize the manufacturer doctype, I noticed the validation error
"'In List View' is not allowed for field Logo (logo) of type Attach Image"
I can see here in the list view settings, when adding a field to the list view, only no value fields are forbidden to be added. https://github.com/frappe/frappe/blob/develop/frappe/public/js/frappe/list/list_settings.js#L325
Yet in the doctype validation code, no value fields are added as black listed fields in the list view, and then arbitrarily attach_image is black listed https://github.com/frappe/frappe/blob/develop/frappe/core/doctype/doctype/doctype.py#L1794
There is a conflict, in 1 place attach_image fields are blacklisted from appearing on the list view, and in the other place, its fine.
I suggest modifying the one line in https://github.com/frappe/frappe/blob/develop/frappe/core/doctype/doctype/doctype.py#L1794 to remove attach_field a
Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!