Commit b1dc36ef authored by Romain Courteaud's avatar Romain Courteaud

Do not link the packing list to the original sale order.

parent 643bdafa
...@@ -68,7 +68,7 @@ if (state in (started, stopped)):\n ...@@ -68,7 +68,7 @@ if (state in (started, stopped)):\n
new_delivery = context.Instance_createSalePackingList(state_change, portal.restrictedTraverse(update_service_relative_url))\n new_delivery = context.Instance_createSalePackingList(state_change, portal.restrictedTraverse(update_service_relative_url))\n
else:\n else:\n
new_delivery = delivery.Base_createCloneDocument(batch_mode=1)\n new_delivery = delivery.Base_createCloneDocument(batch_mode=1)\n
new_delivery.edit(start_date=DateTime(), stop_date=DateTime())\n new_delivery.edit(start_date=DateTime(), stop_date=DateTime(), causality_value=None)\n
new_delivery.contentValues(portal_type="Sale Packing List Line")[0].edit(resource=update_service_relative_url)\n new_delivery.contentValues(portal_type="Sale Packing List Line")[0].edit(resource=update_service_relative_url)\n
new_delivery.confirm()\n new_delivery.confirm()\n
new_delivery.start()\n new_delivery.start()\n
......
...@@ -164,7 +164,7 @@ else:\n ...@@ -164,7 +164,7 @@ else:\n
\n \n
def letsclone(service_relative_url):\n def letsclone(service_relative_url):\n
new_delivery = delivery.Base_createCloneDocument(batch_mode=1)\n new_delivery = delivery.Base_createCloneDocument(batch_mode=1)\n
new_delivery.edit(start_date=DateTime(), stop_date=DateTime())\n new_delivery.edit(start_date=DateTime(), stop_date=DateTime(), causality_value=None)\n
new_delivery.contentValues(portal_type="Sale Packing List Line")[0].edit(resource=service_relative_url)\n new_delivery.contentValues(portal_type="Sale Packing List Line")[0].edit(resource=service_relative_url)\n
return new_delivery\n return new_delivery\n
\n \n
......
20 21
\ 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