fix: dont show serial/batch button when PR is submitted (#54642)

This commit is contained in:
Mihir Kandoi
2026-04-29 16:36:31 +05:30
committed by GitHub
parent d0d8cff48f
commit 060defcc2b

View File

@@ -1049,7 +1049,7 @@
"search_index": 1
},
{
"depends_on": "eval:doc.use_serial_batch_fields === 0",
"depends_on": "eval:doc.use_serial_batch_fields === 0 && parent.docstatus == 0",
"fieldname": "add_serial_batch_for_rejected_qty",
"fieldtype": "Button",
"label": "Add Serial / Batch No (Rejected Qty)"
@@ -1064,7 +1064,7 @@
"fieldtype": "Column Break"
},
{
"depends_on": "eval:doc.use_serial_batch_fields === 0",
"depends_on": "eval:doc.use_serial_batch_fields === 0 && parent.docstatus == 0",
"fieldname": "add_serial_batch_bundle",
"fieldtype": "Button",
"label": "Add Serial / Batch No"
@@ -1149,7 +1149,7 @@
"idx": 1,
"istable": 1,
"links": [],
"modified": "2026-04-07 15:40:47.032889",
"modified": "2026-04-29 16:01:34.154697",
"modified_by": "Administrator",
"module": "Stock",
"name": "Purchase Receipt Item",