feat: serial and batch bundle for Packing Items
diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py
index 74ba2b8..2e705ea 100644
--- a/erpnext/controllers/stock_controller.py
+++ b/erpnext/controllers/stock_controller.py
@@ -719,7 +719,7 @@
table_name = "items"
for row in self.get(table_name):
- if row.serial_and_batch_bundle:
+ if row.get("serial_and_batch_bundle"):
frappe.get_doc(
"Serial and Batch Bundle", row.serial_and_batch_bundle
).set_serial_and_batch_values(self, row)