Commit 0a34f141 authored by Łukasz Nowak's avatar Łukasz Nowak

Rebrand Sale Packing List Builder.

parent 5368bf44
......@@ -106,6 +106,7 @@
<string>trade_phase/slapos/delivery</string>
<string>predecessor/trade_state/ordered</string>
<string>successor/trade_state/delivered</string>
<string>delivery_builder/portal_deliveries/slapos_sale_packing_list_builder</string>
</tuple>
</value>
</item>
......
......@@ -65,7 +65,7 @@
</item>
<item>
<key> <string>delivery_after_generation_script_id</string> </key>
<value> <string>VifibSalePackingList_postGeneration</string> </value>
<value> <string>SlapOSSalePackingList_postGeneration</string> </value>
</item>
<item>
<key> <string>delivery_cell_collect_order</string> </key>
......@@ -140,7 +140,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>vifib_sale_packing_list_builder</string> </value>
<value> <string>slapos_sale_packing_list_builder</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
......@@ -154,11 +154,11 @@
</item>
<item>
<key> <string>simulation_select_method_id</string> </key>
<value> <string>VifibDeliveryBuilder_selectMovement</string> </value>
<value> <string>SlapOSDeliveryBuilder_selectMovement</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Vifib Sale Packing List Builder</string> </value>
<value> <string>SlapOS Sale Packing List Builder</string> </value>
</item>
</dictionary>
</pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>if related_simulation_movement_path_list is None:\n
raise RuntimeError, \'related_simulation_movement_path_list is missing. Update ERP5 Product.\'\n
\n
packing_list = context\n
\n
try:\n
packing_list.PackingList_copyOrderProperties()\n
except AttributeError:\n
# does not come from Order\n
pass\n
\n
# Then, modify state\n
packing_list.Delivery_confirm()\n
\n
line = packing_list.contentValues(portal_type=\'Sale Packing List Line\')[0]\n
portal = packing_list.getPortalObject()\n
\n
if line.getResource() == portal.portal_preferences.getPreferredInstanceSetupResource():\n
packing_list.activate(after_path_and_method_id=(packing_list.getPath(),\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).SalePackingList_deliverInstanceSetup()\n
\n
# First set the packing_list in the building state\n
packing_list.startBuilding()\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>related_simulation_movement_path_list=None</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SlapOSSalePackingList_postGeneration</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
25
\ No newline at end of file
26
\ No newline at end of file
......@@ -21,6 +21,8 @@ organisation_module/slapos/bank_account
portal_alarms/slapos_request_update_hosting_subscription_open_sale_order
portal_categories/trade_phase/slapos
portal_categories/trade_phase/slapos/**
portal_deliveries/slapos_sale_packing_list_builder
portal_deliveries/slapos_sale_packing_list_builder/**
portal_rules/slapos_subscription_item_rule
portal_rules/slapos_subscription_item_rule/**
sale_trade_condition_module/slapos_trade_condition
......
......@@ -106,7 +106,7 @@
<string>trade_phase/slapos/delivery</string>
<string>predecessor/trade_state/ordered</string>
<string>successor/trade_state/delivered</string>
<string>delivery_builder/portal_deliveries/vifib_sale_packing_list_builder</string>
<string>delivery_builder/portal_deliveries/slapos_sale_packing_list_builder</string>
</tuple>
</value>
</item>
......
130
\ No newline at end of file
131
\ No newline at end of file
......@@ -13,8 +13,6 @@ portal_deliveries/vifib_sale_invoice_transaction_builder
portal_deliveries/vifib_sale_invoice_transaction_builder/**
portal_deliveries/vifib_sale_invoice_transaction_trade_model_builder
portal_deliveries/vifib_sale_invoice_transaction_trade_model_builder/**
portal_deliveries/vifib_sale_packing_list_builder
portal_deliveries/vifib_sale_packing_list_builder/**
portal_rules/vifib_accounting_transaction_root_simulation_rule
portal_rules/vifib_accounting_transaction_root_simulation_rule/**
portal_rules/vifib_delivery_root_simulation_rule
......
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