From 7ec00887be10437e64e96568039d248b81b52d70 Mon Sep 17 00:00:00 2001 From: SowmyaArunachalam Date: Thu, 5 Feb 2026 11:08:38 +0530 Subject: [PATCH] fix: handle payment terms template when disabled (cherry picked from commit f23dc079147b2a09e01a08ae94146bb5c48077d3) --- erpnext/selling/doctype/quotation/quotation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/selling/doctype/quotation/quotation.py b/erpnext/selling/doctype/quotation/quotation.py index 8291f9f7228..0fe0f54bd2a 100644 --- a/erpnext/selling/doctype/quotation/quotation.py +++ b/erpnext/selling/doctype/quotation/quotation.py @@ -460,6 +460,8 @@ def _make_sales_order(source_name, target_doc=None, ignore_permissions=False, ar if automatically_fetch_payment_terms: mapping["Payment Schedule"] = {"doctype": "Payment Schedule", "add_if_empty": True} + else: + mapping["Quotation"]["field_no_map"] = ["payment_terms_template"] doclist = get_mapped_doc( "Quotation",