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
d6800917
Commit
d6800917
authored
Sep 28, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: XXX support Open Order Cell
parent
825a7b46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/OpenSaleOrder_updatePeriod.py
...tal_skins/slapos_accounting/OpenSaleOrder_updatePeriod.py
+10
-3
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/OpenSaleOrder_updatePeriod.py
View file @
d6800917
...
...
@@ -46,8 +46,15 @@ if open_sale_order.getValidationState() == 'validated':
person
=
open_sale_order
.
getDestinationDecisionValue
(
portal_type
=
"Person"
)
if
person
is
not
None
:
for
open_order_line
in
open_sale_order
.
contentValues
(
open_order_path_list
=
[]
for
line
in
open_sale_order
.
contentValues
(
portal_type
=
'Open Sale Order Line'
):
if
line
.
hasCellContent
(
base_id
=
'path'
):
open_order_path_list
.
extend
(
line
.
getCellValueList
(
base_id
=
'path'
))
else
:
open_order_path_list
.
append
(
line
)
for
open_order_line
in
open_order_path_list
:
current_start_date
=
open_order_line
.
getStartDate
()
current_stop_date
=
open_order_line
.
getStopDate
()
...
...
@@ -76,8 +83,8 @@ if open_sale_order.getValidationState() == 'validated':
open_order_line
.
edit
(
stop_date
=
stop_date
,
activate_kw
=
activate_kw
)
storeWorkflowComment
(
open_order_line
,
'Stop date updated to %s'
%
stop_date
)
#
storeWorkflowComment(open_order_line,
#
'Stop date updated to %s' % stop_date)
if
instance_tree
.
getSlapState
()
==
'destroy_requested'
:
# Line should be deleted
...
...
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