mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: handle default value for batch size in BOM operation (#20328)
This commit is contained in:
@@ -588,7 +588,7 @@ class BOM(WebsiteGenerator):
|
|||||||
for d in self.operations:
|
for d in self.operations:
|
||||||
if not d.description:
|
if not d.description:
|
||||||
d.description = frappe.db.get_value('Operation', d.operation, 'description')
|
d.description = frappe.db.get_value('Operation', d.operation, 'description')
|
||||||
if not d.batch_size > 0:
|
if not d.batch_size or d.batch_size <= 0:
|
||||||
d.batch_size = 1
|
d.batch_size = 1
|
||||||
|
|
||||||
def get_list_context(context):
|
def get_list_context(context):
|
||||||
|
|||||||
Reference in New Issue
Block a user