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
f0e61d82
Commit
f0e61d82
authored
Jul 20, 2016
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inventory: Add LOG() to help debug #KMS-982 next time it occurs.
parent
a2f4de19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
product/ERP5/Document/Inventory.py
product/ERP5/Document/Inventory.py
+18
-0
No files found.
product/ERP5/Document/Inventory.py
View file @
f0e61d82
...
...
@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Accessor.Constant
import
PropertyGetter
as
ConstantGetter
from
Products.ERP5.Document.Delivery
import
Delivery
from
zLOG
import
LOG
,
INFO
class
Inventory
(
Delivery
):
"""
...
...
@@ -220,6 +221,7 @@ class Inventory(Delivery):
key_list
.
append
(
method
())
inventory_value
=
current_inventory_dict
.
get
(
tuple
(
key_list
),
0
)
second_key_list
=
[]
total_quantity
=
None
if
inventory_calculation_dict
.
has_key
(
'second_level'
):
if
inventory_value
==
0
:
inventory_value
=
{}
...
...
@@ -280,6 +282,15 @@ class Inventory(Delivery):
method
(
category_list
,
value
,
base_category
)
kwd
[
'category_list'
]
=
category_list
LOG
(
'Inventory.immediateReindexObject'
,
INFO
,
"%s: %s: quantity=%s, inventory=%s, diff_quantity=%s"
%
(
movement
.
getRelativeUrl
(),
key_list
,
movement_quantity
,
total_quantity
,
diff_quantity
))
temp_delivery_line
.
edit
(
**
kwd
)
stock_append
(
temp_delivery_line
)
...
...
@@ -322,6 +333,13 @@ class Inventory(Delivery):
method
(
category_list
,
value
,
base_category
)
kwd
[
'category_list'
]
=
category_list
LOG
(
'Inventory.immediateReindexObject'
,
INFO
,
"Not Used Inventory: %s: %s: diff_quantity=%s"
%
(
self
.
getRelativeUrl
(),
first_level_key
,
diff_quantity
))
temp_delivery_line
.
edit
(
**
kwd
)
stock_append
(
temp_delivery_line
)
...
...
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