Commit 11ddea88 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: configure Sale Supply like Sale Trade Condition

Sale people manage Sale Supply
parent 5a760406
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
<role id='F-CUSTOMER'> <role id='F-CUSTOMER'>
<item>Auditor</item> <item>Auditor</item>
</role> </role>
<role id='F-PRODUCTION*'>
<item>Auditor</item>
</role>
<role id='F-SALE*'> <role id='F-SALE*'>
<item>Auditor</item> <item>Auditor</item>
<item>Author</item> <item>Author</item>
...@@ -14,6 +11,8 @@ ...@@ -14,6 +11,8 @@
<local_role_group_ids> <local_role_group_ids>
<local_role_group_id id='function'> <local_role_group_id id='function'>
<principal id='F-CUSTOMER'>Auditor</principal> <principal id='F-CUSTOMER'>Auditor</principal>
<principal id='F-SALE*'>Auditor</principal>
<principal id='F-SALE*'>Author</principal>
</local_role_group_id> </local_role_group_id>
</local_role_group_ids> </local_role_group_ids>
</local_roles_item> </local_roles_item>
\ No newline at end of file
<type_roles> <type_roles>
<role id='Auditor'> <role id='Auditor'>
<property id='title'>Member</property> <property id='title'>Customer</property>
<multi_property id='categories'>local_role_group/function</multi_property> <multi_property id='categories'>local_role_group/function</multi_property>
<multi_property id='category'>function/customer</multi_property> <multi_property id='category'>function/customer</multi_property>
<multi_property id='base_category'>function</multi_property> <multi_property id='base_category'>function</multi_property>
</role> </role>
<role id='Auditor'> <role id='Author; Auditor'>
<property id='title'>Production</property>
<multi_property id='category'>function/production*</multi_property>
<multi_property id='base_category'>function</multi_property>
</role>
<role id='Auditor; Author'>
<property id='title'>Sale</property> <property id='title'>Sale</property>
<multi_property id='categories'>local_role_group/function</multi_property>
<multi_property id='category'>function/sale*</multi_property> <multi_property id='category'>function/sale*</multi_property>
<multi_property id='base_category'>function</multi_property> <multi_property id='base_category'>function</multi_property>
</role> </role>
......
<type_roles> <type_roles>
<role id='Auditor'> <role id='Auditor'>
<property id='title'>Customer</property> <property id='title'>Destination Member</property>
<property id='description'>Monovalued role</property> <property id='condition'>python: (context.getValidationState() == 'validated') and (context.getDestination('', portal_type='Person') != "")
<property id='condition'>python: (here.getDestinationValue(portal_type='Person') is not None) and (here.getValidationState() == 'validated')</property> </property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property> <property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
<multi_property id='categories'>local_role_group/user</multi_property> <multi_property id='categories'>local_role_group/user</multi_property>
<multi_property id='base_category'>destination</multi_property> <multi_property id='base_category'>destination</multi_property>
</role> </role>
<role id='Auditor'> <role id='Auditor'>
<property id='title'>Destination Project Customer</property> <property id='title'>Destination Project Member</property>
<property id='description'>XXX add local role group <property id='condition'>python: (context.getValidationState() == 'validated') and (context.getDestination('') == "") and (context.getDestinationProject('') != "")
</property>
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> <property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
<multi_property id='category'>function/customer</multi_property> <multi_property id='categories'>local_role_group/project</multi_property>
<multi_property id='base_category'>destination_project</multi_property> <multi_property id='base_category'>destination_project</multi_property>
</role> </role>
<role id='Assignee'> <role id='Assignee'>
<property id='title'>Destination Project Production Agent</property> <property id='title'>Sale Agent</property>
<property id='description'>XXX add local role group</property> <multi_property id='categories'>local_role_group/function</multi_property>
<property id='condition'>python: context.getDestinationProject("") != ""</property> <multi_property id='category'>function/sale/agent</multi_property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property> <multi_property id='base_category'>function</multi_property>
<multi_property id='category'>function/production/agent</multi_property>
<multi_property id='base_category'>destination_project</multi_property>
</role> </role>
<role id='Assignor'> <role id='Assignor'>
<property id='title'>Destination Project Production Manager</property> <property id='title'>Sale Manager</property>
<property id='description'>XXX add local role group</property> <multi_property id='categories'>local_role_group/function</multi_property>
<property id='condition'>python: context.getDestinationProject("") != ""</property> <multi_property id='category'>function/sale/manager</multi_property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property> <multi_property id='base_category'>function</multi_property>
<multi_property id='category'>function/production/manager</multi_property>
<multi_property id='base_category'>destination_project</multi_property>
</role>
<role id='Auditor'>
<property id='title'>Source 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.getSourceProject("") != "") and (context.getSource(None) is None) and (context.getValidationState() == 'validated')</property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
<multi_property id='category'>function/customer</multi_property>
<multi_property id='base_category'>source_project</multi_property>
</role>
<role id='Assignee'>
<property id='title'>Source Project Production Agent</property>
<property id='description'>XXX add local role group</property>
<property id='condition'>python: context.getSourceProject("") != ""</property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
<multi_property id='category'>function/production/agent</multi_property>
<multi_property id='base_category'>source_project</multi_property>
</role>
<role id='Assignor'>
<property id='title'>Source Project Production Manager</property>
<property id='description'>XXX add local role group</property>
<property id='condition'>python: context.getSourceProject("") != ""</property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
<multi_property id='category'>function/production/manager</multi_property>
<multi_property id='base_category'>source_project</multi_property>
</role> </role>
</type_roles> </type_roles>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment