From f23dc079147b2a09e01a08ae94146bb5c48077d3 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 --- 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 8f39e857ea1..2c794aa6f68 100644 --- a/erpnext/selling/doctype/quotation/quotation.py +++ b/erpnext/selling/doctype/quotation/quotation.py @@ -469,6 +469,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",