Skip to content

Commit

Permalink
fix: 'NoneType' object is not iterable (frappe#39977)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Feb 20, 2024
1 parent 133f8bd commit 8e7d47b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions erpnext/stock/doctype/pick_list/pick_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ def before_save(self):
self.update_status()
self.set_item_locations()

if self.get("locations"):
self.validate_sales_order_percentage()

def validate_sales_order_percentage(self):
# set percentage picked in SO
for location in self.get("locations"):
if (
Expand Down

0 comments on commit 8e7d47b

Please sign in to comment.