From 5611e9168ec742c1e1300c9cd48fd7190d6c07d8 Mon Sep 17 00:00:00 2001 From: SowmyaArunachalam Date: Wed, 28 Jan 2026 22:24:59 +0530 Subject: [PATCH] test: enable automatically_fetch_payment_terms_from_quotation --- erpnext/selling/doctype/quotation/test_quotation.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/erpnext/selling/doctype/quotation/test_quotation.py b/erpnext/selling/doctype/quotation/test_quotation.py index fb03984f3e8..ec994233400 100644 --- a/erpnext/selling/doctype/quotation/test_quotation.py +++ b/erpnext/selling/doctype/quotation/test_quotation.py @@ -181,6 +181,10 @@ class TestQuotation(IntegrationTestCase): self.assertTrue(quotation.payment_schedule) + @IntegrationTestCase.change_settings( + "Selling Settings", + {"automatically_fetch_payment_terms_from_quotation": 1}, + ) def test_make_sales_order_terms_copied(self): from erpnext.selling.doctype.quotation.quotation import make_sales_order @@ -325,6 +329,10 @@ class TestQuotation(IntegrationTestCase): "Accounts Settings", {"add_taxes_from_item_tax_template": 0, "add_taxes_from_taxes_and_charges_template": 0}, ) + @IntegrationTestCase.change_settings( + "Selling Settings", + {"automatically_fetch_payment_terms_from_quotation": 1}, + ) def test_make_sales_order_with_terms(self): from erpnext.selling.doctype.quotation.quotation import make_sales_order