Commit d9c514c5 authored by Jérome Perrin's avatar Jérome Perrin

(seb)

* call updateCausalityState with fast option in SalePackingList_copyOrderProperties
* in the case we add new lines to an existing packing_list already confirmed, do not delete data in PackingList_copyOrderProperties


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5311 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c16dae9
......@@ -69,22 +69,14 @@
<value> <string>packing_list = context\n
related_order = packing_list.getCausalityValue()\n
\n
packing_list.edit(\n
comment = related_order.getComment(),\n
delivery_mode = related_order.getDeliveryMode(),\n
# destination_section_value = related_order.getDestinationSectionValue(),\n
# destination_value = related_order.getDestinationValue(),\n
incoterm = related_order.getIncoterm(),\n
source_administration_value = related_order.getSourceAdministrationValue(),\n
# source_section_value = related_order.getSourceSectionValue(),\n
# source_value = related_order.getSourceValue(),\n
# start_date = related_order.getStartDate(),\n
# stop_date = related_order.getStopDate(),\n
title = related_order.getTitle()\n
)\n
\n
# If security definitions are implement on the packing list, it is time to apply them\n
packing_list.assignRoleToSecurityGroup()\n
if packing_list.getSimulationState()==\'draft\':\n
packing_list.edit(\n
comment = related_order.getComment(),\n
delivery_mode = related_order.getDeliveryMode(),\n
incoterm = related_order.getIncoterm(),\n
source_administration_value = related_order.getSourceAdministrationValue(),\n
title = related_order.getTitle()\n
)\n
</string> </value>
</item>
<item>
......
......@@ -85,7 +85,7 @@ if packing_list_state == "draft":\n
packing_list.startBuilding()\n
# Then an activity should put the causality state in diverged or solved\n
# XXX after_method_id is not good, it should be after_group_id, but not yet implemented\n
packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImmediateReindexObject\',\'Delivery_confirm\')).updateCausalityState()\n
packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImmediateReindexObject\',\'Delivery_confirm\')).updateCausalityState(fast=1)\n
</string> </value>
</item>
<item>
......
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