From 80c20531aa8d98c44fd92bfe3af52ce1c860bbb6 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 c8be6ef82fc..50e0e1c1d01 100644 --- a/erpnext/selling/doctype/quotation/quotation.py +++ b/erpnext/selling/doctype/quotation/quotation.py @@ -464,6 +464,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",