Commit 5a521da8 authored by Łukasz Nowak's avatar Łukasz Nowak

Fix PPL definition.

parent 8a96b0f0
...@@ -199,12 +199,16 @@ class TestVifibUserAdmin(testVifibMixin): ...@@ -199,12 +199,16 @@ class TestVifibUserAdmin(testVifibMixin):
purchase_packing_list_module = self.portal.restrictedTraverse(purchase_packing_list_module_id) purchase_packing_list_module = self.portal.restrictedTraverse(purchase_packing_list_module_id)
# Create PPL # Create PPL
purchase_packing_list = purchase_packing_list_module.newContent( purchase_packing_list = purchase_packing_list_module.newContent(
portal_type='Purchase Packing List')
purchase_packing_list.edit(
start_date=DateTime(), start_date=DateTime(),
specialise='sale_trade_condition_module/vifib_trade_condition',
source='organisation_module/vifib_internet',
source_section='organisation_module/vifib_internet',
# XXX Hardcoded values
destination_value=person_value,
destination_section_value=person_value,
destination_decision_value=person_value, destination_decision_value=person_value,
) price_currency='currency_module/EUR',
portal_type='Purchase Packing List')
# Access service # Access service
service_module_id = self.portal.getDefaultModuleId(portal_type='Service') service_module_id = self.portal.getDefaultModuleId(portal_type='Service')
service_module = self.portal.restrictedTraverse(service_module_id) service_module = self.portal.restrictedTraverse(service_module_id)
...@@ -212,9 +216,9 @@ class TestVifibUserAdmin(testVifibMixin): ...@@ -212,9 +216,9 @@ class TestVifibUserAdmin(testVifibMixin):
# Create PPLL # Create PPLL
purchase_packing_list_line = purchase_packing_list.newContent( purchase_packing_list_line = purchase_packing_list.newContent(
portal_type='Purchase Packing List Line') portal_type='Purchase Packing List Line',
purchase_packing_list_line.edit(
resource_value=service_value, resource_value=service_value,
aggregate_value_list=[computer, software_release], aggregate_value_list=[computer, software_release],
quantity=1
) )
purchase_packing_list.portal_workflow.doActionFor(purchase_packing_list, 'confirm_action') purchase_packing_list.portal_workflow.doActionFor(purchase_packing_list, 'confirm_action')
379 380
\ No newline at end of file \ No newline at end of file
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