fix(stock): use purchase UOM in Supplier Quotation items

(cherry picked from commit 2606ca6fa9)
This commit is contained in:
Bharathidhasan06
2026-01-22 18:07:36 +05:30
committed by Mergify
parent b3e12f9acb
commit f97b850077

View File

@@ -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: