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
iv
erp5
Commits
5b8778ae
Commit
5b8778ae
authored
Sep 02, 2011
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MovementHistoryListBrain constructor. start_date or stop_date may be None.
parent
42a9f6ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
product/ERP5/Extensions/InventoryBrain.py
product/ERP5/Extensions/InventoryBrain.py
+9
-3
No files found.
product/ERP5/Extensions/InventoryBrain.py
View file @
5b8778ae
...
@@ -377,11 +377,17 @@ class MovementHistoryListBrain(InventoryListBrain):
...
@@ -377,11 +377,17 @@ class MovementHistoryListBrain(InventoryListBrain):
# the brain is accessed from the Shared.DC.ZRDB.Results.Results instance
# the brain is accessed from the Shared.DC.ZRDB.Results.Results instance
obj
=
self
.
getObject
()
obj
=
self
.
getObject
()
if
obj
is
not
None
:
if
obj
is
not
None
:
timezone
=
None
if
self
.
node_relative_url
==
obj
.
getSource
():
if
self
.
node_relative_url
==
obj
.
getSource
():
timezone
=
obj
.
getStartDate
().
timezone
()
start_date
=
obj
.
getStartDate
()
if
start_date
is
not
None
:
timezone
=
start_date
.
timezone
()
else
:
else
:
timezone
=
obj
.
getStopDate
().
timezone
()
stop_date
=
obj
.
getStopDate
()
self
.
date
=
self
.
date
.
toZone
(
timezone
)
if
stop_date
is
not
None
:
timezone
=
stop_date
.
timezone
()
if
timezone
is
not
None
:
self
.
date
=
self
.
date
.
toZone
(
timezone
)
def
_debit
(
self
):
def
_debit
(
self
):
if
self
.
getObject
().
isCancellationAmount
():
if
self
.
getObject
().
isCancellationAmount
():
...
...
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