mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 21:52:21 +01:00
fix: handle NoneType object error for product bundle
(cherry picked from commit 2b7abfb34b)
This commit is contained in:
@@ -1390,13 +1390,15 @@ class SerialandBatchBundle(Document):
|
|||||||
|
|
||||||
so_name, so_detail_no = frappe.db.get_value(
|
so_name, so_detail_no = frappe.db.get_value(
|
||||||
"Delivery Note Item", self.voucher_detail_no, ["against_sales_order", "so_detail"]
|
"Delivery Note Item", self.voucher_detail_no, ["against_sales_order", "so_detail"]
|
||||||
)
|
) or [None, None]
|
||||||
|
|
||||||
if so_name and so_detail_no:
|
if so_name and so_detail_no:
|
||||||
sre_names = get_sre_against_so_for_dn(so_name, so_detail_no)
|
sre_names = get_sre_against_so_for_dn(so_name, so_detail_no)
|
||||||
|
|
||||||
return sre_names
|
return sre_names
|
||||||
|
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def download_blank_csv_template(content):
|
def download_blank_csv_template(content):
|
||||||
|
|||||||
Reference in New Issue
Block a user