Commit 301d19ab authored by Vincent Pelletier's avatar Vincent Pelletier

Initialise self.checkbook_model_module.

Set the default generic checkbook model title on created checkbook model.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13418 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84a7e80f
...@@ -636,6 +636,7 @@ class TestERP5BankingMixin: ...@@ -636,6 +636,7 @@ class TestERP5BankingMixin:
self.simulation_tool = self.getSimulationTool() self.simulation_tool = self.getSimulationTool()
# get the currency module # get the currency module
self.currency_module = self.getCurrencyModule() self.currency_module = self.getCurrencyModule()
self.checkbook_model_module = self.portal.checkbook_model_module
# a default date # a default date
self.date = DateTime() self.date = DateTime()
...@@ -728,7 +729,7 @@ class TestERP5BankingMixin: ...@@ -728,7 +729,7 @@ class TestERP5BankingMixin:
""" """
model = self.checkbook_model_module.newContent(id = id, model = self.checkbook_model_module.newContent(id = id,
portal_type = 'Checkbook Model', portal_type = 'Checkbook Model',
) title='Generic')
model.newContent(id='variant_1',portal_type='Checkbook Model Check Amount Variation', model.newContent(id='variant_1',portal_type='Checkbook Model Check Amount Variation',
quantity=25,title='25') quantity=25,title='25')
model.newContent(id='variant_2',portal_type='Checkbook Model Check Amount Variation', model.newContent(id='variant_2',portal_type='Checkbook Model Check Amount Variation',
......
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