Commit 4216ad93 authored by Rafael Monnerat's avatar Rafael Monnerat

Do not use TradeOrder constraint into Packing List.

This Constraint do not work for packing lists because according to
the constraint the "lines" should be order movements and not delivery
movements. Update related Test.
parent f76a2fd5
......@@ -64,8 +64,7 @@ configuration_save.addConfigurationItem("Catalog Keyword Key Configurator Item",
\n
# Customize portal type information.\n
# Include Constraints to some Simulation Objects\n
# XXX (rafael) Why not Purchase Packing List?\n
for portal_type in [\'Purchase Order\', \'Sale Order\',\'Sale Packing List\']:\n
for portal_type in [\'Purchase Order\', \'Sale Order\']:\n
configuration_save.addConfigurationItem("Portal Type Configurator Item",\n
target_portal_type=portal_type,\n
add_propertysheet_list=(\'TradeOrder\',))\n
......
......@@ -825,8 +825,6 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
inventory = portal.portal_types['Inventory']
sale_packing_list = portal.portal_types['Sale Packing List']
sale_packing_list_line = portal.portal_types['Sale Packing List Line']
self.assertEquals(True,
'TradeOrder' in sale_packing_list.getTypePropertySheetList())
self.assertEquals(True,
'TradeOrderLine' in sale_packing_list_line.getTypePropertySheetList())
self.assertEquals(True,
......
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