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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
481468b3
Commit
481468b3
authored
May 29, 2019
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder mixin: Set Price to 0 on movements for optimization
parent
0c7254ff
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 @
481468b3
...
...
@@ -395,6 +395,8 @@ class BuilderMixin(XMLObject, Amount, Predicate):
)
movement
.
edit
(
resource_value
=
resource_value
,
# Hardcoded price for optimization
price
=
0
,
destination_value
=
supply
.
getDestinationValue
(),
destination_section_value
=
supply
.
getDestinationSectionValue
(),
source_value
=
supply
.
getSourceValue
(),
...
...
@@ -429,7 +431,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
)
#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:
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