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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
a483e0b4
Commit
a483e0b4
authored
Feb 22, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: drop compatibility with expliciate trade condition usage
parent
17885d22
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
...pos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
+1
-6
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/InstanceTree_requestUpdateOpenSaleOrder.xml
...os_accounting/InstanceTree_requestUpdateOpenSaleOrder.xml
+1
-1
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
View file @
a483e0b4
...
...
@@ -44,7 +44,6 @@ def newOpenOrder(start_date, service,
open_sale_order
=
module
.
newContent
(
portal_type
=
order_portal_type
,
temp_object
=
temp_order
,
specialise
=
specialise
,
effective_date
=
DateTime
(),
start_date
=
start_date
,
# Ensure stop date value is higher than start date
...
...
@@ -109,10 +108,6 @@ def newOpenOrder(start_date, service,
open_sale_order
.
SaleOrder_applySaleTradeCondition
(
batch_mode
=
1
,
force
=
1
)
# Check compatibility with previous template
if
specialise
is
not
None
:
assert
open_sale_order
.
getSpecialise
()
==
specialise
if
price
is
None
:
price
=
open_order_cell
.
getPrice
()
...
...
@@ -165,7 +160,7 @@ if instance_tree.getCausalityState() == 'diverged':
# Search for matching resource
service
,
software_release
,
software_type
=
instance_tree
.
InstanceTree_getSoftwareProduct
()
if
(
service
is
None
)
or
(
service
.
getUse
()
!=
'trade/sale'
):
# XXX Add comment on instance tree
storeWorkflowComment
(
instance_tree
,
"No software product found"
)
return
#raise NotImplementedError('No Software Product defined for %s' % instance_tree.getRelativeUrl())
...
...
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/InstanceTree_requestUpdateOpenSaleOrder.xml
View file @
a483e0b4
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
specialise=None,
REQUEST=None
</string>
</value>
<value>
<string>
REQUEST=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
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