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