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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
4862a9a8
Commit
4862a9a8
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
d22f5b85
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 @
4862a9a8
...
...
@@ -179,12 +179,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