Commit e504bd55 authored by Łukasz Nowak's avatar Łukasz Nowak

Follow 5b83ed49.

Hardcode values for PPL too.
parent 2f1d0501
...@@ -2334,6 +2334,13 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -2334,6 +2334,13 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
order = module.newContent( order = module.newContent(
portal_type=self.purchase_packing_list_portal_type, portal_type=self.purchase_packing_list_portal_type,
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='person_module/test_vifib_customer',
destination_section='person_module/test_vifib_customer',
price_currency='currency_module/EUR',
) )
sequence.edit(purchase_packing_list_uid=order.getUid()) sequence.edit(purchase_packing_list_uid=order.getUid())
...@@ -2344,7 +2351,8 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -2344,7 +2351,8 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
order = self.portal.portal_catalog.getResultValue( order = self.portal.portal_catalog.getResultValue(
uid=sequence["purchase_packing_list_uid"]) uid=sequence["purchase_packing_list_uid"])
line = order.newContent( line = order.newContent(
portal_type=self.purchase_packing_list_line_portal_type) portal_type=self.purchase_packing_list_line_portal_type,
quantity=1)
sequence.edit(purchase_packing_list_line_uid=line.getUid()) sequence.edit(purchase_packing_list_line_uid=line.getUid())
def stepSetPurchasePackingListLineAggregate(self, sequence, **kw): def stepSetPurchasePackingListLineAggregate(self, sequence, **kw):
......
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