diff --git a/erpnext/selling/doctype/quotation/test_quotation.py b/erpnext/selling/doctype/quotation/test_quotation.py index 2d1da049653..f3ab4bee1a8 100644 --- a/erpnext/selling/doctype/quotation/test_quotation.py +++ b/erpnext/selling/doctype/quotation/test_quotation.py @@ -175,6 +175,10 @@ class TestQuotation(FrappeTestCase): 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 @@ -319,6 +323,10 @@ class TestQuotation(FrappeTestCase): "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