Commit 3805be10 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: Move Shadow to be Auditor from Assignee

   for Sale Invoice Transaction
parent acf94945
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<multi_property id='category'>function/accounting*</multi_property> <multi_property id='category'>function/accounting*</multi_property>
<multi_property id='base_category'>function</multi_property> <multi_property id='base_category'>function</multi_property>
</role> </role>
<role id='Assignee'> <role id='Auditor'>
<property id='title'>Shadow User</property> <property id='title'>Shadow User</property>
<property id='description'>Destination Section has shadow rights on the document</property> <property id='description'>Destination Section has shadow rights on the document</property>
<property id='condition'>python: (here.getDestination('', portal_type='Person') != "") and (here.getLedger("") == "automated")</property> <property id='condition'>python: (here.getDestination('', portal_type='Person') != "") and (here.getLedger("") == "automated")</property>
......
...@@ -245,7 +245,7 @@ class TestSaleInvoiceTransaction(TestSlapOSGroupRoleSecurityMixin): ...@@ -245,7 +245,7 @@ class TestSaleInvoiceTransaction(TestSlapOSGroupRoleSecurityMixin):
'SHADOW-%s' % person.getUserId()], False) 'SHADOW-%s' % person.getUserId()], False)
self.assertRoles(product, 'F-ACCOUNTING*', ['Auditor']) self.assertRoles(product, 'F-ACCOUNTING*', ['Auditor'])
self.assertRoles(product, person.getUserId(), ['Auditor']) self.assertRoles(product, person.getUserId(), ['Auditor'])
self.assertRoles(product, 'SHADOW-%s' % person.getUserId(), ['Assignee']) self.assertRoles(product, 'SHADOW-%s' % person.getUserId(), ['Auditor'])
self.assertRoles(product, self.user_id, ['Owner']) self.assertRoles(product, self.user_id, ['Owner'])
......
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