mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-14 20:48:46 +00:00
fix: use get instead of dot operator to access dict value
(cherry picked from commit 7fb75f0482)
This commit is contained in:
@@ -774,7 +774,7 @@ class StockController(AccountsController):
|
|||||||
if row.get("batch_no"):
|
if row.get("batch_no"):
|
||||||
update_values["batch_no"] = None
|
update_values["batch_no"] = None
|
||||||
|
|
||||||
if row.serial_and_batch_bundle:
|
if row.get("serial_and_batch_bundle"):
|
||||||
update_values["serial_and_batch_bundle"] = None
|
update_values["serial_and_batch_bundle"] = None
|
||||||
frappe.db.set_value(
|
frappe.db.set_value(
|
||||||
"Serial and Batch Bundle", row.serial_and_batch_bundle, {"is_cancelled": 1}
|
"Serial and Batch Bundle", row.serial_and_batch_bundle, {"is_cancelled": 1}
|
||||||
|
|||||||
Reference in New Issue
Block a user