Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
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
Jérome Perrin
erp5
Commits
3270cc16
Commit
3270cc16
authored
Mar 19, 2024
by
Romain Courteaud
🐸
Committed by
Kazuhiko Shiozaki
Jul 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_open_trade: do not expand open order which are not yet started
parent
0afbc5d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_open_trade/SkinTemplateItem/portal_skins/erp5_open_trade/OpenOrder_updateSimulation.py
...ortal_skins/erp5_open_trade/OpenOrder_updateSimulation.py
+2
-1
No files found.
bt5/erp5_open_trade/SkinTemplateItem/portal_skins/erp5_open_trade/OpenOrder_updateSimulation.py
View file @
3270cc16
...
...
@@ -12,7 +12,8 @@ for open_order_line in context.objectValues():
if
getattr
(
item
.
aq_explicit
,
'updateSimulation'
,
None
)
is
not
None
and
\
item
not
in
subscription_item_set
:
subscription_item_set
.
add
(
item
)
stop_date
=
item
.
getNextPeriodicalDate
(
now
)
# If start_date is in futur, do not look for unreachable period
stop_date
=
item
.
getNextPeriodicalDate
(
max
(
now
,
ob
.
getStartDate
()))
# Do not expand subscription item if there is
# no new simulation movement to create
# (expand always reindex the full simulation tree,
...
...
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