diff --git a/product/ERP5/Document/PaySheetTransaction.py b/product/ERP5/Document/PaySheetTransaction.py index e0aba55542c0bd6cee9a0bdbc4d9a44a5f38efcf..846edcc127f132e8fc4f7c08bd44fc6e5eac3c12 100644 --- a/product/ERP5/Document/PaySheetTransaction.py +++ b/product/ERP5/Document/PaySheetTransaction.py @@ -85,9 +85,9 @@ class PaySheetTransaction(Invoice): # if not find in the paysheet, look on dependence tree sub_object_list = self.getInheritedObjectValueList(portal_type_list) object_ratio_list = sub_object_list - for object in object_ratio_list: - if object.getReference() == ratio_reference: - return object.getQuantity() + for ob in object_ratio_list: + if ob.getReference() == ratio_reference: + return ob.getQuantity() return None