erp5_crm: Update TALES conditions for 'Attachments' fields in Base_viewCRMFieldLibrary

Change the conditions from getAggregate to hasAggregate and add a portal_type filter
of getPortalDocumentTypeList, since in reality these check for Attachments that are Document Types
stored in ERP5, so types like 'Internet Message Post' should not be considered.

Plus, xml changes, since there was no commit in these fields in the last 9 years
16 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds