Commit 688fe5ee authored by Fabien Morin's avatar Fabien Morin

add a condition to not add the cell if it's quantity is None or null


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18595 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 71a38f67
...@@ -487,6 +487,7 @@ class PaySheetTransaction(Invoice): ...@@ -487,6 +487,7 @@ class PaySheetTransaction(Invoice):
quantity = cell_dict['quantity'] quantity = cell_dict['quantity']
price = cell_dict['price'] price = cell_dict['price']
if quantity:
cell_list.append(cell_dict) cell_list.append(cell_dict)
# update the base_participation # update the base_participation
...@@ -558,7 +559,7 @@ class PaySheetTransaction(Invoice): ...@@ -558,7 +559,7 @@ class PaySheetTransaction(Invoice):
id_list = model_reference_dict[key] id_list = model_reference_dict[key]
model = self.getPortalObject().restrictedTraverse(key) model = self.getPortalObject().restrictedTraverse(key)
if model is None: if model is None:
LOG("copyInheritanceSubObjects,", 0, "can't find model %s" % key) LOG("getInheritedObjectValueList :", 0, "can't find model %s" % key)
for id in id_list: for id in id_list:
object = model._getOb(id) object = model._getOb(id)
......
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