Commit 83aa35c2 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: fixup Bank Account local roles

parent 6f678c50
<type_roles> <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'> <role id='Assignor'>
<property id='title'>Group company</property> <property id='title'>Accountant Manager</property>
<multi_property id='categories'>local_role_group/group</multi_property> <multi_property id='categories'>local_role_group/function</multi_property>
<multi_property id='category'>group/company</multi_property> <multi_property id='category'>function/accounting/manager</multi_property>
<multi_property id='base_category'>group</multi_property> <multi_property id='base_category'>function</multi_property>
</role> </role>
</type_roles> </type_roles>
\ No newline at end of file
...@@ -1621,6 +1621,17 @@ class TestOrganisation(TestSlapOSGroupRoleSecurityMixin): ...@@ -1621,6 +1621,17 @@ class TestOrganisation(TestSlapOSGroupRoleSecurityMixin):
self.assertRoles(delivery, 'R-SHADOW-PERSON', ['Auditor']) self.assertRoles(delivery, 'R-SHADOW-PERSON', ['Auditor'])
class TestBankAccount(TestSlapOSGroupRoleSecurityMixin):
def test_BankAccount_default(self):
delivery = self.portal.organisation_module.newContent(
portal_type='Organisation').newContent(portal_type="Bank Account")
self.assertSecurityGroup(delivery,
['F-ACCAGT', 'F-ACCMAN', self.user_id], False)
self.assertRoles(delivery, self.user_id, ['Owner'])
self.assertRoles(delivery, 'F-ACCAGT', ['Assignee'])
self.assertRoles(delivery, 'F-ACCMAN', ['Assignor'])
class TestBusinessProcessModule(TestSlapOSGroupRoleSecurityMixin): class TestBusinessProcessModule(TestSlapOSGroupRoleSecurityMixin):
def test_BusinessProcessModule(self): def test_BusinessProcessModule(self):
module = self.portal.business_process_module module = self.portal.business_process_module
......
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