Commit 51e0ba00 authored by Łukasz Nowak's avatar Łukasz Nowak

- use do actionFor with _action to have all constraints checked during validation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42562 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 90fb81cb
......@@ -99,7 +99,7 @@ if (request_software_instance is None):\n
activate_kw={\'tag\': tag},\n
**portal.Base_getNewSoftwareInstanceCoordinate()\n
)\n
request_software_instance.validate()\n
request_software_instance.portal_workflow.doActionFor(request_software_instance, \'validate_action\')\n
sale_packing_list_line = context.SoftwareInstance_getInstanceSetupPackingListLine(state_change)\n
hosting_subscription_uid = sale_packing_list_line.getAggregateValue(portal_type=\'Hosting Subscription\').getUid()\n
request_software_instance.requestComputerPartition(\n
......
187
\ No newline at end of file
189
\ No newline at end of file
......@@ -97,7 +97,7 @@ if (request_software_instance is None):\n
activate_kw={\'tag\': tag},\n
**portal.Base_getNewSoftwareInstanceCoordinate()\n
)\n
software_instance.validate()\n
software_instance.portal_workflow.doActionFor(software_instance, \'validate_action\')\n
subscription = portal.getDefaultModule(portal_type=hosting_subscription_portal_type).newContent(\n
portal_type=hosting_subscription_portal_type,\n
title=requested_partition_reference,\n
......
326
\ No newline at end of file
328
\ 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