Commit d7922120 authored by Vincent Pelletier's avatar Vincent Pelletier

Login as super_user before creating counter date documents.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13549 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aca21e66
......@@ -163,10 +163,6 @@ class TestERP5BankingCashExchange(TestERP5BankingMixin, ERP5TypeTestCase):
self.createCashInventory(source=self.guichet_2, destination=self.guichet_2, currency=self.currency_1,
line_list=line_list_guichet_2)
# open counter date and counter
self.openCounterDate(site=self.paris.surface.banque_interne.guichet_1.encaisse_des_billets_et_monnaies.sortante)
# now we need to create a user as Manager to do the test
# in order to have an assigment defined which is used to do transition
# Create an Organisation that will be used for users assignment
......@@ -182,6 +178,8 @@ class TestERP5BankingCashExchange(TestERP5BankingMixin, ERP5TypeTestCase):
self.logout()
self.login('super_user')
# open counter date and counter
self.openCounterDate(site=self.paris.surface.banque_interne.guichet_1.encaisse_des_billets_et_monnaies.sortante)
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
......
......@@ -143,9 +143,9 @@ class TestERP5BankingCashIncident(TestERP5BankingMixin, ERP5TypeTestCase):
}
# call method to create this user
self.createERP5Users(user_dict)
self.openCounterDate(site=self.paris)
self.logout()
self.login('super_user')
self.openCounterDate(site=self.paris)
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
......
......@@ -151,10 +151,6 @@ class TestERP5BankingCashToCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCa
self.createCashInventory(source=None, destination=self.guichet_sortante, currency=self.currency_1,
line_list=line_list_sortante)
# open counter date and counter
self.openCounterDate(site=self.paris.surface.banque_interne.guichet_1.encaisse_des_billets_et_monnaies.sortante)
# now we need to create a user as Manager to do the test
# in order to have an assigment defined which is used to do transition
# Create an Organisation that will be used for users assignment
......@@ -169,6 +165,8 @@ class TestERP5BankingCashToCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCa
self.createERP5Users(user_dict)
self.logout()
self.login('super_user')
# open counter date and counter
self.openCounterDate(site=self.paris.surface.banque_interne.guichet_1.encaisse_des_billets_et_monnaies.sortante)
......
......@@ -141,10 +141,6 @@ class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase):
self.createCashInventory(source=None, destination=self.guichet_sortante, currency=self.currency_2,
line_list=line_list_sortante)
# open counter date and counter
self.openCounterDate(site=self.paris.surface.banque_interne.guichet_1)
# now we need to create a user as Manager to do the test
# in order to have an assigment defined which is used to do transition
# Create an Organisation that will be used for users assignment
......@@ -159,6 +155,8 @@ class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase):
self.createERP5Users(user_dict)
self.logout()
self.login('super_user')
# open counter date and counter
self.openCounterDate(site=self.paris.surface.banque_interne.guichet_1)
......
......@@ -120,10 +120,10 @@ class TestERP5BankingCheckbookDeliveryMixin:
account_id='bank_account_1',
currency=self.currency_1,
amount=100000)
# open counter date and counter
self.openCounterDate(site=self.paris)
self.logout()
self.login('super_user')
# open counter date and counter
self.openCounterDate(site=self.paris)
# this is required in order to have some items
# in the source
self.createCheckbookReception()
......
......@@ -116,9 +116,9 @@ class TestERP5BankingForeignCashReception(TestERP5BankingMixin, ERP5TypeTestCase
}
# call method to create this user
self.createERP5Users(user_dict)
self.openCounterDate(site=self.paris)
self.logout()
self.login('super_user')
self.openCounterDate(site=self.paris)
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
......
......@@ -187,9 +187,9 @@ class TestERP5BankingMonetaryIssue(TestERP5BankingMonetaryReceptionMixin, TestER
}
# call method to create this user
self.createERP5Users(user_dict)
self.openCounterDate(site=self.paris)
self.logout()
self.login('super_user')
self.openCounterDate(site=self.paris)
# this is required in order to have some items
# in the source
......
......@@ -114,9 +114,9 @@ class TestERP5BankingMonetaryReception(TestERP5BankingMixin, ERP5TypeTestCase):
}
# call method to create this user
self.createERP5Users(user_dict)
self.openCounterDate(site=self.paris)
self.logout()
self.login('super_user')
self.openCounterDate(site=self.paris)
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
......
......@@ -107,8 +107,6 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
self.hq_mutilated_banknote_vault = self.siege.surface.caisse_courante.billets_mutiles
self.hq_usual_vault = self.siege.surface.caisse_courante.encaisse_des_billets_et_monnaies
self.openCounterDate(site=self.paris)
self.openCounterDate(site=self.siege, id='counter_date_2')
self.createCashInventory(source=None, destination=self.usual_vault, currency=self.currency_1,
line_list=line_list)
self.createCashInventory(source=None, destination=self.hq_usual_vault, currency=self.currency_1,
......@@ -130,6 +128,8 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
self.createERP5Users(user_dict)
self.logout()
self.login('super_user')
self.openCounterDate(site=self.paris)
self.openCounterDate(site=self.siege, id='counter_date_2')
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
......
......@@ -131,8 +131,6 @@ class TestERP5BankingUsualCashIncident(TestERP5BankingMixin, ERP5TypeTestCase):
self.createBanknotesAndCoins()
self.usual_cash = self.paris.surface.caisse_courante.encaisse_des_billets_et_monnaies
# open counter date and counter
self.openCounterDate(site=self.paris)
# now we need to create a user as Manager to do the test
# in order to have an assigment defined which is used to do transition
# Create an Organisation that will be used for users assignment
......@@ -147,6 +145,8 @@ class TestERP5BankingUsualCashIncident(TestERP5BankingMixin, ERP5TypeTestCase):
self.createERP5Users(user_dict)
self.logout()
self.login('super_user')
# open counter date and counter
self.openCounterDate(site=self.paris)
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
......
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