diff --git a/bt5/erp5_invoicing/PathTemplateItem/portal_deliveries/payment_transaction_builder.xml b/bt5/erp5_invoicing/PathTemplateItem/portal_deliveries/payment_transaction_builder.xml index f673e027f8e4166fea5c6c336aa14122f8dc1ac4..23f9521e95751d568bfa9bc7d842f3873c9960ad 100644 --- a/bt5/erp5_invoicing/PathTemplateItem/portal_deliveries/payment_transaction_builder.xml +++ b/bt5/erp5_invoicing/PathTemplateItem/portal_deliveries/payment_transaction_builder.xml @@ -92,6 +92,10 @@ <key> <string>delivery_portal_type</string> </key> <value> <string>Payment Transaction</string> </value> </item> + <item> + <key> <string>delivery_select_method_id</string> </key> + <value> <string>DeliveryBuilder_selectPlannedDeliveryList</string> </value> + </item> <item> <key> <string>description</string> </key> <value> diff --git a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/DeliveryBuilder_selectPlannedDeliveryList.xml b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/DeliveryBuilder_selectPlannedDeliveryList.xml new file mode 100644 index 0000000000000000000000000000000000000000..957b9cd37fbee76f5445ae4317781de0e5e58bfc --- /dev/null +++ b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/DeliveryBuilder_selectPlannedDeliveryList.xml @@ -0,0 +1,131 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </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>portal_type = context.getDeliveryPortalType()\n +# make sure that the result of the simulation state is update to date, so check getSimulationState manually\n +return [x.getObject() for x in context.portal_catalog(portal_type=portal_type,simulation_state=\'planned\') \n + if x.getObject().getSimulationState()==\'planned\']\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>**kw</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>kw</string> + <string>_getattr_</string> + <string>context</string> + <string>portal_type</string> + <string>append</string> + <string>$append0</string> + <string>_getiter_</string> + <string>x</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>DeliveryBuilder_selectPlannedDeliveryList</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_invoicing/bt/revision b/bt5/erp5_invoicing/bt/revision index 4f37670799715b48e31ab1be1c419f6ddbb19056..1713e61879b31926baea088e51f1ce68fa8d015f 100644 --- a/bt5/erp5_invoicing/bt/revision +++ b/bt5/erp5_invoicing/bt/revision @@ -1 +1 @@ -333 \ No newline at end of file +334 \ No newline at end of file