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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
a15edce5
Commit
a15edce5
authored
Feb 23, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate Open Sale Order Lines.
parent
703d682b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
...bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
+19
-0
master/bt5/vifib_upgrader/bt/revision
master/bt5/vifib_upgrader/bt/revision
+1
-1
No files found.
master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
View file @
a15edce5
...
@@ -16,3 +16,22 @@ def DeliveryLineSetZeroPriceAndOrUpdateAppliedRule(self):
...
@@ -16,3 +16,22 @@ def DeliveryLineSetZeroPriceAndOrUpdateAppliedRule(self):
else
:
else
:
self
.
setQuantity
(
1.0
)
self
.
setQuantity
(
1.0
)
self
.
Delivery_updateAppliedRule
()
self
.
Delivery_updateAppliedRule
()
from
DateTime
import
DateTime
@
WorkflowMethod
.
disable
def
OpenSaleOrderLine_migrate
(
self
):
now
=
DateTime
().
earliestTime
()
self
.
setStartDate
(
now
)
self
.
setStopDate
(
now
)
self
.
setPrice
(
0.0
)
self
.
setQuantity
(
1.0
)
self
.
setResource
(
self
.
getPortalObject
().
portal_preferences
.
getPreferredInstanceSubscriptionResource
())
resource_value
=
self
.
getResourceValue
()
self
.
setBaseContributionList
(
resource_value
.
getBaseContributionList
())
self
.
setUseList
(
resource_value
.
getUseList
())
self
.
setQuantityUnit
(
resource_value
.
getQuantityUnit
())
self
.
setSpecialise
(
'sale_trade_condition_module/vifib_trade_condition'
)
self
.
setSourceSection
(
'organisation_module/vifib_internet'
)
self
.
setSource
(
'organisation_module/vifib_internet'
)
self
.
setDestination
(
self
.
getParentValue
().
getDestinationSection
())
self
.
setDestinationSection
(
self
.
getParentValue
().
getDestinationSection
())
master/bt5/vifib_upgrader/bt/revision
View file @
a15edce5
47
48
\ No newline at end of file
\ 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