From b97a0c9a13927c2a53e5bbf29d8670a65c01c377 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Sun, 21 Jun 2026 15:29:25 +0530 Subject: [PATCH] test(accounts): set Check field with int, not bool (Postgres) set_value(Company, ..., "book_advance_payments_in_separate_party_account", True) errored on Postgres (smallint column, boolean expression). Use 1; MariaDB unchanged. --- .../doctype/unreconcile_payment/test_unreconcile_payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/unreconcile_payment/test_unreconcile_payment.py b/erpnext/accounts/doctype/unreconcile_payment/test_unreconcile_payment.py index 31f2c6b5508..ff17d6bbac2 100644 --- a/erpnext/accounts/doctype/unreconcile_payment/test_unreconcile_payment.py +++ b/erpnext/accounts/doctype/unreconcile_payment/test_unreconcile_payment.py @@ -424,7 +424,7 @@ class TestUnreconcilePayment(ERPNextTestSuite, AccountsTestMixin): self.disable_advance_as_liability() def test_07_adv_from_so_to_invoice(self): - frappe.db.set_value("Company", self.company, "book_advance_payments_in_separate_party_account", True) + frappe.db.set_value("Company", self.company, "book_advance_payments_in_separate_party_account", 1) frappe.db.set_value( "Company", self.company, "default_advance_received_account", "Advance Received - _TC" )