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
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

01:03:47

failed ERP5.PerformanceTest-Master

00:32:07

failed ERP5.UnitTest-Master

02:30:28

failed ERP5.UnitTest-Master.Medusa

02:30:10

passed SlapOS.Eggs.UnitTest-Master.Python2

00:22:43

passed SlapOS.Eggs.UnitTest-Master.Python3

00:19:39

failed ERP5.UnitTest-Master

02:13:35

failed ERP5.UnitTest-Master

05:14:47

passed SlapOS.Eggs.UnitTest-Master.Python2

00:39:23

passed SlapOS.Eggs.UnitTest-Master.Python2

00:24:48

passed SlapOS.Eggs.UnitTest-Master.Python2

00:13:47

passed SlapOS.Eggs.UnitTest-Master.Python2

00:31:26

passed SlapOS.Eggs.UnitTest-Master.Python3

00:07:59

passed SlapOS.Eggs.UnitTest-Master.Python3

00:13:41

passed SlapOS.Eggs.UnitTest-Master.Python3

00:18:47

passed SlapOS.Eggs.UnitTest-Master.Python3

03:37:18