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
Klaus Wölfel
erp5
Commits
b1506dfe
Commit
b1506dfe
authored
May 29, 2019
by
Cédric Le Ninivin
Committed by
Klaus Wölfel
Apr 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder mixin: Set Price to 0 on movements for optimization
parent
9ded9a7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
...TemplateItem/portal_components/mixin.erp5.BuilderMixin.py
+5
-1
No files found.
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.BuilderMixin.py
View file @
b1506dfe
...
@@ -395,6 +395,8 @@ class BuilderMixin(XMLObject, Amount, Predicate):
...
@@ -395,6 +395,8 @@ class BuilderMixin(XMLObject, Amount, Predicate):
)
)
movement
.
edit
(
movement
.
edit
(
resource_value
=
resource_value
,
resource_value
=
resource_value
,
# Hardcoded price for optimization
price
=
0
,
destination_value
=
supply
.
getDestinationValue
(),
destination_value
=
supply
.
getDestinationValue
(),
destination_section_value
=
supply
.
getDestinationSectionValue
(),
destination_section_value
=
supply
.
getDestinationSectionValue
(),
source_value
=
supply
.
getSourceValue
(),
source_value
=
supply
.
getSourceValue
(),
...
@@ -429,7 +431,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
...
@@ -429,7 +431,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
)
)
#previous_movement_list= []
#previous_movement_list= []
for
brain
in
previous_movement_list
:
for
brain
in
previous_movement_list
:
brain
.
getObject
().
setQuantity
(
0
)
previous_movement
=
brain
.
getObject
()
previous_movement
.
setQuantity
(
0
)
previous_movement
.
setPrice
(
0
)
# Calculate first possible shipment:
# Calculate first possible shipment:
first_shipment_date
=
max
(
first_shipment_date
=
max
(
...
...
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