Commit 6dc4fa27 authored by Łukasz Nowak's avatar Łukasz Nowak

Fix 43751:

* software_instance set to RootSoftwareInstance reserves highest level Software Instance
* user provides title by requested_partition_reference parameter which differentiates instances

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43758 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d84fd42
...@@ -58,7 +58,7 @@ portal = person.getPortalObject()\n ...@@ -58,7 +58,7 @@ portal = person.getPortalObject()\n
kwargs = state_change.kwargs\n kwargs = state_change.kwargs\n
software_release_url_string = state_change.kwargs[\'software_release\']\n software_release_url_string = state_change.kwargs[\'software_release\']\n
requested_partition_reference = kwargs["partition_reference"]\n requested_partition_reference = kwargs["partition_reference"]\n
software_type = kwargs["software_type"]\n software_type = "RootSoftwareInstance"\n
instance_xml = kwargs["instance_xml"]\n instance_xml = kwargs["instance_xml"]\n
\n \n
sale_order_portal_type = "Sale Order"\n sale_order_portal_type = "Sale Order"\n
...@@ -77,7 +77,7 @@ tag = "%s_%s_%s_inProgress" % (person.getUid(), software_type, \n ...@@ -77,7 +77,7 @@ tag = "%s_%s_%s_inProgress" % (person.getUid(), software_type, \n
request_software_instance = portal.portal_catalog.getResultValue(\n request_software_instance = portal.portal_catalog.getResultValue(\n
portal_type=software_instance_portal_type,\n portal_type=software_instance_portal_type,\n
source_reference=software_type,\n source_reference=software_type,\n
reference=requested_partition_reference,\n title=requested_partition_reference,\n
)\n )\n
if (request_software_instance is None):\n if (request_software_instance is None):\n
if (portal.portal_activities.countMessageWithTag(tag) > 0):\n if (portal.portal_activities.countMessageWithTag(tag) > 0):\n
......
340 342
\ 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