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 @@ ...@@ -69,22 +69,14 @@
<value> <string>packing_list = context\n <value> <string>packing_list = context\n
related_order = packing_list.getCausalityValue()\n related_order = packing_list.getCausalityValue()\n
\n \n
packing_list.edit(\n if packing_list.getSimulationState()==\'draft\':\n
comment = related_order.getComment(),\n packing_list.edit(\n
delivery_mode = related_order.getDeliveryMode(),\n comment = related_order.getComment(),\n
# destination_section_value = related_order.getDestinationSectionValue(),\n delivery_mode = related_order.getDeliveryMode(),\n
# destination_value = related_order.getDestinationValue(),\n incoterm = related_order.getIncoterm(),\n
incoterm = related_order.getIncoterm(),\n source_administration_value = related_order.getSourceAdministrationValue(),\n
source_administration_value = related_order.getSourceAdministrationValue(),\n title = related_order.getTitle()\n
# source_section_value = related_order.getSourceSectionValue(),\n )\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
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -85,7 +85,7 @@ if packing_list_state == "draft":\n ...@@ -85,7 +85,7 @@ if packing_list_state == "draft":\n
packing_list.startBuilding()\n packing_list.startBuilding()\n
# Then an activity should put the causality state in diverged or solved\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 # 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> </string> </value>
</item> </item>
<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