<type_roles>
  <role id='Assignee'>
   <property id='title'>Accountant Agent</property>
   <multi_property id='categories'>local_role_group/function</multi_property>
   <multi_property id='category'>function/accounting/agent</multi_property>
   <multi_property id='base_category'>function</multi_property>
  </role>
  <role id='Assignor'>
   <property id='title'>Accountant Manager</property>
   <multi_property id='categories'>local_role_group/function</multi_property>
   <multi_property id='category'>function/accounting/manager</multi_property>
   <multi_property id='base_category'>function</multi_property>
  </role>
  <role id='Assignee'>
   <property id='title'>Sale Agent</property>
   <multi_property id='categories'>local_role_group/function</multi_property>
   <multi_property id='category'>function/sale/agent</multi_property>
   <multi_property id='base_category'>function</multi_property>
  </role>
  <role id='Assignor'>
   <property id='title'>Sale Manager</property>
   <multi_property id='categories'>local_role_group/function</multi_property>
   <multi_property id='category'>function/sale/manager</multi_property>
   <multi_property id='base_category'>function</multi_property>
  </role>
  <role id='Auditor'>
   <property id='title'>The Shadow User Himself</property>
   <property id='description'>Monovalued role</property>
   <property id='condition'>python: here.objectValues(portal_type=["ERP5 Login", "Google Login", "Facebook Login", "Certificate Login"])</property>
   <property id='base_category_script'>Person_getSecurityCategoryFromSelfShadow</property>
   <multi_property id='categories'>local_role_group/shadow</multi_property>
   <multi_property id='base_category'>group</multi_property>
  </role>
  <role id='Assignee'>
   <property id='title'>The User Himself</property>
   <property id='description'>Monovalued role</property>
   <property id='condition'>python: here.objectValues(portal_type=["ERP5 Login", "Google Login", "Facebook Login", "Certificate Login"])</property>
   <property id='base_category_script'>ERP5Type_getSecurityCategoryFromSelf</property>
   <multi_property id='categories'>local_role_group/user</multi_property>
   <multi_property id='base_category'>group</multi_property>
  </role>
</type_roles>