<type_roles>
  <role id='Auditor'>
   <property id='title'>Customer</property>
   <property id='description'>Monovalued role</property>
   <property id='condition'>python: (here.getDestinationValue(portal_type='Person') is not None) and (here.getValidationState() == 'validated')</property>
   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
   <multi_property id='categories'>local_role_group/user</multi_property>
   <multi_property id='base_category'>destination</multi_property>
  </role>
  <role id='Auditor'>
   <property id='title'>Project Customer</property>
   <property id='description'>XXX add local role group

Only show to all project customer if it is not specific to a dedicated user</property>
   <property id='condition'>python: (context.getDestinationProject("") != "") and (context.getDestination(None) is None) and (context.getValidationState() == 'validated')</property>
   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
   <multi_property id='categories'>local_role_group/project</multi_property>
   <multi_property id='category'>function/customer</multi_property>
   <multi_property id='base_category'>destination_project</multi_property>
  </role>
  <role id='Assignee'>
   <property id='title'>Project Production Agent</property>
   <property id='description'>XXX add local role group</property>
   <property id='condition'>python: context.getDestinationProject("") != ""</property>
   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
   <multi_property id='categories'>local_role_group/project</multi_property>
   <multi_property id='category'>function/production/agent</multi_property>
   <multi_property id='base_category'>destination_project</multi_property>
  </role>
  <role id='Assignor'>
   <property id='title'>Project Production Manager</property>
   <property id='description'>XXX add local role group</property>
   <property id='condition'>python: context.getDestinationProject("") != ""</property>
   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
   <multi_property id='categories'>local_role_group/project</multi_property>
   <multi_property id='category'>function/production/manager</multi_property>
   <multi_property id='base_category'>destination_project</multi_property>
  </role>
</type_roles>