From f97b85007781b8cd0c79e67c9910c13465582a1f Mon Sep 17 00:00:00 2001 From: Bharathidhasan06 Date: Thu, 22 Jan 2026 18:07:36 +0530 Subject: [PATCH] fix(stock): use purchase UOM in Supplier Quotation items (cherry picked from commit 2606ca6fa9c1d2917f096975f33a31da43ee39f4) --- erpnext/stock/get_item_details.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index a1f431c883e..f2ac54898a7 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -439,8 +439,10 @@ def get_basic_details(ctx: ItemDetailsCtx, item, overwrite_warehouse=True) -> It if not ctx.uom: if ctx.doctype in sales_doctypes: ctx.uom = item.sales_uom if item.sales_uom else item.stock_uom - elif (ctx.doctype in ["Purchase Order", "Purchase Receipt", "Purchase Invoice"]) or ( - ctx.doctype == "Material Request" and ctx.material_request_type == "Purchase" + elif ( + (ctx.doctype in ["Purchase Order", "Purchase Receipt", "Purchase Invoice"]) + or (ctx.doctype == "Material Request" and ctx.material_request_type == "Purchase") + or (ctx.doctype == "Supplier Quotation") ): ctx.uom = item.purchase_uom if item.purchase_uom else item.stock_uom else: