Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.core
Commits
92ad87f0
Commit
92ad87f0
authored
Dec 29, 2011
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not create Open Sale Order Line as software instance.
parent
954394bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
26 deletions
+26
-26
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/HostingSubscription_requestRootSoftwareInstance.xml
..._slap/HostingSubscription_requestRootSoftwareInstance.xml
+25
-25
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
No files found.
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/HostingSubscription_requestRootSoftwareInstance.xml
View file @
92ad87f0
...
@@ -132,7 +132,7 @@ if (request_software_instance is None):\n
...
@@ -132,7 +132,7 @@ if (request_software_instance is None):\n
aggregate_value_list=[request_software_instance,\n
aggregate_value_list=[request_software_instance,\n
hosting_subscription,\n
hosting_subscription,\n
software_release_document\n
software_release_document\n
],\n
],\n
activate_kw={\'tag\': tag},\n
activate_kw={\'tag\': tag},\n
)\n
)\n
#portal.portal_workflow.doActionFor(sale_order, "order_action")\n
#portal.portal_workflow.doActionFor(sale_order, "order_action")\n
...
@@ -156,31 +156,31 @@ if (request_software_instance is None):\n
...
@@ -156,31 +156,31 @@ if (request_software_instance is None):\n
else:\n
else:\n
raise ValueError(\'Person has no open order created\')\n
raise ValueError(\'Person has no open order created\')\n
\n
\n
now = DateTime()\n
now = DateTime()\n
start_date = getClosestDate(target_date=now, precision=\'day\', before=1)\n
start_date = getClosestDate(target_date=now, precision=\'day\', before=1)\n
# 12 months of subscription by default\n
# 12 months of subscription by default\n
stop_date = addToDate(getClosestDate(target_date=now, precision=\'month\', before=1), year=1)\n
stop_date = addToDate(getClosestDate(target_date=now, precision=\'month\', before=1), year=1)\n
\n
\n
subscription_service_relative_url = portal.portal_preferences.getPreferredInstanceSubscriptionResource()\n
subscription_service_relative_url = portal.portal_preferences.getPreferredInstanceSubscriptionResource()\n
open_order.newContent(\n
open_order.newContent(\n
portal_type="Open Sale Order Line",\n
portal_type="Open Sale Order Line",\n
title=hosting_subscription.getTitle(),\n
title=hosting_subscription.getTitle(),\n
aggregate_value=hosting_subscription,\n
aggregate_value=hosting_subscription,\n
start_date=start_date,\n
start_date=start_date,\n
stop_date=stop_date,\n
stop_date=stop_date,\n
quantity=1,\n
quantity=1,\n
quantity_unit="unit/piece",\n
quantity_unit="unit/piece",\n
price=1,\n
price=1,\n
price_currency="currency_module/EUR",\n
price_currency="currency_module/EUR",\n
specialise=sale_order.getSpecialise(portal_type="Sale Trade Condition"),\n
specialise=sale_order.getSpecialise(portal_type="Sale Trade Condition"),\n
# XXX Hardcoded values\\n\n
# XXX Hardcoded values\\n\n
resource=subscription_service_relative_url,\n
resource=subscription_service_relative_url,\n
destination=person_relative_url,\n
destination=person_relative_url,\n
destination_section=person_relative_url,\n
destination_section=person_relative_url,\n
source="organisation_module/vifib_internet",\n
source="organisation_module/vifib_internet",\n
source_section="organisation_module/vifib_internet",\n
source_section="organisation_module/vifib_internet",\n
activate_kw={\'tag\': tag},\n
activate_kw={\'tag\': tag},\n
)\n
)\n
\n
\n
hosting_subscription_predecessor_list = hosting_subscription.getPredecessorList()\n
hosting_subscription_predecessor_list = hosting_subscription.getPredecessorList()\n
hosting_subscription_predecessor_list.append(request_software_instance.getRelativeUrl())\n
hosting_subscription_predecessor_list.append(request_software_instance.getRelativeUrl())\n
...
...
master/bt5/vifib_slap/bt/revision
View file @
92ad87f0
50
0
50
1
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment