fix: error due to passing None in scrub

This commit is contained in:
Saif Ur Rehman 2019-01-02 16:22:22 +05:00
parent e194a655df
commit 016f29f09b

View File

@ -200,7 +200,7 @@ class GrossProfitGenerator(object):
def skip_row(self, row, product_bundles):
if self.filters.get("group_by") != "Invoice":
if not row.get(scrub(self.filters.get("group_by"))):
if not row.get(scrub(self.filters.get("group_by", ""))):
return True
elif row.get("is_return") == 1:
return True