Commit dccd1f8e authored by Vincent Pelletier's avatar Vincent Pelletier

Create super_user and use it to create counter date document.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13554 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 089c47a5
...@@ -164,7 +164,18 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -164,7 +164,18 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase):
self.createCashInventory(source=None, destination=self.vault_source, currency=self.currency_1, self.createCashInventory(source=None, destination=self.vault_source, currency=self.currency_1,
line_list=line_list) line_list=line_list)
# Create an Organisation that will be used for users assignment
self.checkUserFolderType()
self.organisation = self.organisation_module.newContent(id='baobab_org', portal_type='Organisation',
function='banking', group='baobab', site='testsite/paris')
# define the user
user_dict = {
'super_user' : [['Manager'], self.organisation, 'banking/comptable', 'baobab', 'testsite/paris/surface/banque_interne/guichet_1']
}
# call method to create this user
self.createERP5Users(user_dict)
self.logout()
self.login('super_user')
self.openCounterDate(site=self.paris) self.openCounterDate(site=self.paris)
......
...@@ -124,6 +124,18 @@ class TestERP5BankingDestructionSurvey(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -124,6 +124,18 @@ class TestERP5BankingDestructionSurvey(TestERP5BankingMixin, ERP5TypeTestCase):
self.cash = self.paris.caveau.auxiliaire.encaisse_des_billets_a_ventiler_et_a_detruire self.cash = self.paris.caveau.auxiliaire.encaisse_des_billets_a_ventiler_et_a_detruire
self.counter = self.paris.caveau.auxiliaire.encaisse_des_billets_ventiles_et_detruits self.counter = self.paris.caveau.auxiliaire.encaisse_des_billets_ventiles_et_detruits
self.createCashInventory(source=None, destination=self.cash, currency=self.currency_1, line_list=line_list) self.createCashInventory(source=None, destination=self.cash, currency=self.currency_1, line_list=line_list)
# Create an Organisation that will be used for users assignment
self.checkUserFolderType()
self.organisation = self.organisation_module.newContent(id='baobab_org', portal_type='Organisation',
function='banking', group='baobab', site='testsite/paris')
# define the user
user_dict = {
'super_user' : [['Manager'], self.organisation, 'banking/comptable', 'baobab', 'testsite/paris/surface/banque_interne/guichet_1']
}
# call method to create this user
self.createERP5Users(user_dict)
self.logout()
self.login('super_user')
self.openCounterDate(site=self.paris) self.openCounterDate(site=self.paris)
......
...@@ -164,6 +164,18 @@ class TestERP5BankingUsualCashRendering(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -164,6 +164,18 @@ class TestERP5BankingUsualCashRendering(TestERP5BankingMixin, ERP5TypeTestCase):
self.auxiliaire = self.paris.caveau.auxiliaire.encaisse_des_billets_et_monnaies self.auxiliaire = self.paris.caveau.auxiliaire.encaisse_des_billets_et_monnaies
self.createCashInventory(source=None, destination=self.caisse_courante, currency=self.currency_1, self.createCashInventory(source=None, destination=self.caisse_courante, currency=self.currency_1,
line_list=line_list) line_list=line_list)
# Create an Organisation that will be used for users assignment
self.checkUserFolderType()
self.organisation = self.organisation_module.newContent(id='baobab_org', portal_type='Organisation',
function='banking', group='baobab', site='testsite/paris')
# define the user
user_dict = {
'super_user' : [['Manager'], self.organisation, 'banking/comptable', 'baobab', 'testsite/paris/surface/banque_interne/guichet_1']
}
# call method to create this user
self.createERP5Users(user_dict)
self.logout()
self.login('super_user')
self.openCounterDate(site=self.paris) self.openCounterDate(site=self.paris)
......
...@@ -168,6 +168,18 @@ class TestERP5BankingVaultTransfer(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -168,6 +168,18 @@ class TestERP5BankingVaultTransfer(TestERP5BankingMixin, ERP5TypeTestCase):
self.createCashInventory(source=None, destination=self.auxiliaire, currency=self.currency_1, self.createCashInventory(source=None, destination=self.auxiliaire, currency=self.currency_1,
line_list=line_list) line_list=line_list)
self.salle_tri = self.paris.surface.salle_tri.encaisse_des_billets_et_monnaies self.salle_tri = self.paris.surface.salle_tri.encaisse_des_billets_et_monnaies
# Create an Organisation that will be used for users assignment
self.checkUserFolderType()
self.organisation = self.organisation_module.newContent(id='baobab_org', portal_type='Organisation',
function='banking', group='baobab', site='testsite/paris')
# define the user
user_dict = {
'super_user' : [['Manager'], self.organisation, 'banking/comptable', 'baobab', 'testsite/paris/surface/caisse_courante/encaisse_des_billets_et_monnaies']
}
# call method to create this user
self.createERP5Users(user_dict)
self.logout()
self.login('super_user')
self.openCounterDate(site=self.paris) self.openCounterDate(site=self.paris)
......
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