fix: 'NoneType' object is not iterable (#39977)
This commit is contained in:
parent
133f8bd92a
commit
8e7d47b3a7
@ -73,6 +73,10 @@ class PickList(Document):
|
|||||||
self.update_status()
|
self.update_status()
|
||||||
self.set_item_locations()
|
self.set_item_locations()
|
||||||
|
|
||||||
|
if self.get("locations"):
|
||||||
|
self.validate_sales_order_percentage()
|
||||||
|
|
||||||
|
def validate_sales_order_percentage(self):
|
||||||
# set percentage picked in SO
|
# set percentage picked in SO
|
||||||
for location in self.get("locations"):
|
for location in self.get("locations"):
|
||||||
if (
|
if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user