Commit 612109b8 authored by Fabien Morin's avatar Fabien Morin

typo


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27466 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3798fcda
......@@ -88,7 +88,6 @@ class PaySheetTransaction(Invoice):
for document in object_ratio_list:
if document.getReference() == ratio_reference:
return document.getQuantity()
return None
security.declareProtected(Permissions.AccessContentsInformation,
......@@ -116,12 +115,10 @@ class PaySheetTransaction(Invoice):
for annotation_line in annotation_line_list:
if (annotation_line.getReference() or annotation_line.getId()) == reference :
return annotation_line
# if not find in the paysheet, look on dependence tree
for annotation_line in self.getInheritedObjectValueList(['Annotation Line']):
if (annotation_line.getReference() or annotation_line.getId()) == reference:
return annotation_line
return None
security.declareProtected(Permissions.AccessContentsInformation,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment