Commit e225a345 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: show Sale Trade Condition to its destination

parent af2f33cf
......@@ -5,6 +5,14 @@
<multi_property id='category'>function/accounting*</multi_property>
<multi_property id='base_category'>function</multi_property>
</role>
<role id='Auditor'>
<property id='title'>Destination Member</property>
<property id='condition'>python: context.getDestination('', portal_type='Person') != ""
</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'>Destination Project Member</property>
<property id='condition'>python: context.getDestinationProject('', portal_type='Project') != ""
......@@ -31,12 +39,4 @@
<multi_property id='category'>function/sale/manager</multi_property>
<multi_property id='base_category'>function</multi_property>
</role>
<role id='Auditor'>
<property id='title'>Source Project Member</property>
<property id='condition'>python: context.getSourceProject('', portal_type='Project') != ""
</property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
<multi_property id='categories'>local_role_group/project</multi_property>
<multi_property id='base_category'>source_project</multi_property>
</role>
</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