Commit 19108082 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: create trade condition which could be applied to subscribe to a virtual master

parent 2507ae8c
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</role> </role>
<role id='Auditor'> <role id='Auditor'>
<property id='title'>Destination Member</property> <property id='title'>Destination Member</property>
<property id='condition'>python: context.getDestination('', portal_type='Person') != "" <property id='condition'>python: (context.getValidationState() == 'validated') and (context.getDestination('', portal_type='Person') != "")
</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>
...@@ -15,12 +15,20 @@ ...@@ -15,12 +15,20 @@
</role> </role>
<role id='Auditor'> <role id='Auditor'>
<property id='title'>Destination Project Member</property> <property id='title'>Destination Project Member</property>
<property id='condition'>python: context.getDestinationProject('', portal_type='Project') != "" <property id='condition'>python: (context.getValidationState() == 'validated') and (context.getDestination('') == "") and (context.getDestinationProject('') != "")
</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/project</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='Auditor'>
<property id='title'>Global for all Customers</property>
<property id='condition'>python: (context.getValidationState() == 'validated') and (context.getDestination('') == "") and (context.getDestinationProject('') == "")
</property>
<multi_property id='categories'>local_role_group/function</multi_property>
<multi_property id='category'>function/customer</multi_property>
<multi_property id='base_category'>function</multi_property>
</role>
<role id='Auditor'> <role id='Auditor'>
<property id='title'>Person Shadow</property> <property id='title'>Person Shadow</property>
<multi_property id='categories'>local_role_group/shadow</multi_property> <multi_property id='categories'>local_role_group/shadow</multi_property>
......
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