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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Frederic Thoma
erp5
Commits
dacf12bb
Commit
dacf12bb
authored
Jun 26, 2019
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stock optimisation: give possibility to pass more parameters
parent
3fa50c21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
product/ERP5/mixin/builder.py
product/ERP5/mixin/builder.py
+5
-4
No files found.
product/ERP5/mixin/builder.py
View file @
dacf12bb
...
...
@@ -180,12 +180,13 @@ class BuilderMixin(XMLObject, Amount, Predicate):
# Inventory can be negative in some date, and positive in futur !!
# This must be done by subclassing OrderBuilder with a new inventory
# algorithm.
inventory_kw
=
kw
.
copy
()
inventory_kw
.
setdefault
(
'group_by_variation'
,
1
)
inventory_kw
.
setdefault
(
'group_by_resource'
,
1
)
inventory_kw
.
setdefault
(
'group_by_section'
,
0
)
sql_list
=
self
.
portal_simulation
.
getFutureInventoryList
(
group_by_variation
=
1
,
group_by_resource
=
1
,
group_by_node
=
group_by_node
,
group_by_section
=
0
,
**
kw
)
**
inventory_kw
)
# min_flow and max_delay are stored on a supply line. By default
# we can get them through a method having the right supply type prefix
# like getPurchaseSupplyLineMinFlow. So we need to guess the supply prefix
...
...
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