Commit 0703095f authored by Sebastien Robin's avatar Sebastien Robin

make sure to update roles when changing site on counter date (it is not done...

make sure to update roles when changing site on counter date (it is not done in the user interface usually)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15412 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c71c143c
...@@ -662,6 +662,7 @@ class TestERP5BankingMixin: ...@@ -662,6 +662,7 @@ class TestERP5BankingMixin:
if open: if open:
date_object.open() date_object.open()
setattr(self, id, date_object) setattr(self, id, date_object)
date_object.assignRoleToSecurityGroup()
def openAccountingDate(self, date=None, site=None, id='accounting_date_1', open=True): def openAccountingDate(self, date=None, site=None, id='accounting_date_1', open=True):
""" """
...@@ -804,8 +805,7 @@ class TestERP5BankingMixin: ...@@ -804,8 +805,7 @@ class TestERP5BankingMixin:
return bank_account return bank_account
def createCheckbook(self, id, vault, bank_account, min, max, date=None, def createCheckbook(self, id, vault, bank_account, min, max, date=None):
destination_value=None):
""" """
Create a checkbook for the given bank account Create a checkbook for the given bank account
""" """
......
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