Skip to content

Commit

Permalink
fix: 'NoneType' object is not iterable (backport #39977) (#39980)
Browse files Browse the repository at this point in the history
fix: 'NoneType' object is not iterable (#39977)

(cherry picked from commit 8e7d47b)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Feb 20, 2024
1 parent 385b08d commit 8e71665
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 @@ -32,6 +32,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 8e71665

Please sign in to comment.