Commit 4144073e authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test: sale person have access to the currency module

parent ff589d0a
......@@ -1410,11 +1410,12 @@ class TestCurrencyModule(TestSlapOSGroupRoleSecurityMixin):
module = self.portal.currency_module
self.assertSecurityGroup(module,
['F-ACCOUNTING*', 'F-PRODUCTION*', module.Base_getOwnerId(),
'R-SHADOW-PERSON', 'F-CUSTOMER'], True)
'R-SHADOW-PERSON', 'F-CUSTOMER', 'F-SALE*'], True)
self.assertRoles(module, 'F-ACCOUNTING*', ['Auditor', 'Author'])
self.assertRoles(module, 'R-SHADOW-PERSON', ['Auditor'])
self.assertRoles(module, 'F-PRODUCTION*', ['Auditor'])
self.assertRoles(module, 'F-CUSTOMER', ['Auditor'])
self.assertRoles(module, 'F-SALE*', ['Auditor'])
self.assertRoles(module, module.Base_getOwnerId(), ['Owner'])
......@@ -1424,11 +1425,12 @@ class TestCurrency(TestSlapOSGroupRoleSecurityMixin):
portal_type='Currency')
self.assertSecurityGroup(product,
['F-ACCOUNTING*', 'F-PRODUCTION*', self.user_id,
'R-SHADOW-PERSON', 'F-CUSTOMER'], False)
'R-SHADOW-PERSON', 'F-CUSTOMER', 'F-SALE*'], False)
self.assertRoles(product, 'F-ACCOUNTING*', ['Auditor', 'Author'])
self.assertRoles(product, 'R-SHADOW-PERSON', ['Auditor'])
self.assertRoles(product, 'F-PRODUCTION*', ['Auditor'])
self.assertRoles(product, 'F-CUSTOMER', ['Auditor'])
self.assertRoles(product, 'F-SALE*', ['Auditor'])
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