Commit 10ebc392 authored by Sebastien Robin's avatar Sebastien Robin

allow to give a reference to check model

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14574 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af341a83
......@@ -814,15 +814,26 @@ class TestERP5BankingMixin:
return model
def createCheckModel(self, id):
def createCheckModel(self, id, reference='CCOP'):
"""
Create a checkbook for the given bank account
"""
return self.checkbook_model_module.newContent(id = id,
portal_type = 'Check Model',
title = 'Check',
reference = reference,
)
def createCheckAndCheckbookModel(self):
"""
create default checkbook and check models
"""
self.check_model = self.createCheckModel(id='check_model')
self.check_model_1 = self.check_model
self.checkbook_model = self.createCheckbookModel(
id='checkbook_model', check_model=self.check_model)
self.checkbook_model_1 = self.checkbook_model
def createCheck(self, id, reference, checkbook, bank_account=None,
resource_value=None):
"""
......
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