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
b5af5e8f
Commit
b5af5e8f
authored
Jan 15, 2018
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buidler: Add tmp fix/workaround on movement order
parent
d924b6c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
product/ERP5/mixin/builder.py
product/ERP5/mixin/builder.py
+5
-1
No files found.
product/ERP5/mixin/builder.py
View file @
b5af5e8f
...
@@ -371,6 +371,10 @@ class BuilderMixin(XMLObject, Amount, Predicate):
...
@@ -371,6 +371,10 @@ class BuilderMixin(XMLObject, Amount, Predicate):
movement_list
=
[]
movement_list
=
[]
ordered_inventory
=
0
ordered_inventory
=
0
order_movement_list
=
[]
order_movement_list
=
[]
# XXX This is dangerous if increase and decrease movements happen at
# the same date,
# In order to work at a due date, increase movement must be placed
# before decrease movement happening at the same date
history_list
=
resource_value
.
Resource_getInventoryHistoryList
(
history_list
=
resource_value
.
Resource_getInventoryHistoryList
(
from_date
=
from_date
,
from_date
=
from_date
,
node_uid
=
supply
.
getDestinationUid
()
node_uid
=
supply
.
getDestinationUid
()
...
@@ -384,7 +388,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
...
@@ -384,7 +388,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
movement_list
.
append
(
movement_list
.
append
(
newMovement
(
newMovement
(
ordered_date
,
ordered_date
,
date
,
addToDate
(
date
,
second
=-
1
)
,
ordered_quantity
,
ordered_quantity
,
ordered_unit
ordered_unit
)
)
...
...
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