Commit cd7edabf authored by Sebastien Robin's avatar Sebastien Robin

fixed the test ERP5BankingTravelerCheck

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10603 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e11e3763
......@@ -715,7 +715,7 @@ class TestERP5BankingMixin:
variation = model.newContent(id='variant_1',
portal_type='Check Model Type Variation',
price=50)
model.setPriceCurrency(self.currency_2)
model.setPriceCurrency(self.currency_2.getRelativeUrl())
return model
def createCashContainer(self, document, container_portal_type, global_dict, line_list, delivery_line_type='Cash Delivery Line'):
......
......@@ -100,6 +100,7 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase):
self.createManagerAndLogin()
self.createFunctionGroupSiteCategory()
self.traveler_check_model = self.createTravelerCheckModel('traveler_check_model')
self.checkbook_model_1 = self.createCheckbookModel('checkbook_model_1')
self.check_model_1 = self.createCheckModel('check_model_1')
self.reception = self.paris.caveau.auxiliaire.encaisse_des_billets_et_monnaies
......
......@@ -97,8 +97,9 @@ class TestERP5BankingCheckbookUsualCashTransferMixin(
# Add a line for traveler check
self.line_2 = self.checkbook_vault_transfer.newContent(quantity=1,
resource_value=self.traveler_check_model,
check_amount_value=self.traveler_check_model.variant_1,
check_type_value=self.traveler_check_model.variant_1,
aggregate_value=self.traveler_check,
price_currency_value=self.currency_2
)
self.workflow_tool.doActionFor(self.checkbook_vault_transfer, 'plan_action',
wf_id='checkbook_vault_transfer_workflow')
......
......@@ -92,9 +92,10 @@ class TestERP5BankingCheckbookVaultTransferMixin:
# Add a line for check and checkbook
self.line_2 = self.checkbook_reception.newContent(quantity=1,
resource_value=self.traveler_check_model,
check_amount_value=self.traveler_check_model.variant_1,
check_type_value=self.traveler_check_model.variant_1,
reference_range_min=52,
reference_range_max=52,
price_currency_value=self.currency_2
)
self.workflow_tool.doActionFor(self.checkbook_reception, 'confirm_action',
wf_id='checkbook_reception_workflow')
......
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