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
df7a9f95
Commit
df7a9f95
authored
Sep 08, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: debug debug debug log log log
parent
018f5e61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
...pos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
+8
-2
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
View file @
df7a9f95
...
...
@@ -123,6 +123,7 @@ if instance_tree.getCausalityState() == 'diverged':
assert
open_order
.
getSpecialise
()
==
specialise
predicate_list
=
[]
log_predicate_list
=
[]
inherited_trade_condition
=
open_sale_order
.
getSpecialiseValue
()
if
specialise
is
None
:
...
...
@@ -133,6 +134,9 @@ if instance_tree.getCausalityState() == 'diverged':
x
for
x
in
inherited_trade_condition
.
contentValues
(
portal_type
=
'Sale Supply Line'
)
if
x
.
getResource
()
==
service
.
getRelativeUrl
()
])
log_predicate_list
.
extend
([
x
for
x
in
inherited_trade_condition
.
contentValues
(
portal_type
=
'Sale Supply Line'
)
])
inherited_trade_condition
=
inherited_trade_condition
.
getSpecialiseValue
(
portal_type
=
inherited_trade_condition
.
getPortalType
())
price
=
service
.
getPrice
(
...
...
@@ -141,11 +145,13 @@ if instance_tree.getCausalityState() == 'diverged':
default
=
None
,
)
if
price
is
None
:
raise
NotImplementedError
(
'Price not found on %s (%s) for %s %s'
%
(
raise
NotImplementedError
(
'Price not found on %s (%s) for %s %s
- %s
'
%
(
open_sale_order
.
getSpecialiseTitle
(),
open_sale_order
.
getSpecialise
(),
service
.
getRelativeUrl
(),
str
([
x
.
getRelativeUrl
()
for
x
in
predicate_list
])))
str
([
x
.
getRelativeUrl
()
for
x
in
predicate_list
]),
str
([(
x
.
getRelativeUrl
(),
x
.
getResource
())
for
x
in
log_predicate_list
]),
))
open_order_line
.
edit
(
price
=
price
)
...
...
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