diff --git a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py index 322fc9f16b..e43ea6ecbe 100644 --- a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py @@ -1747,6 +1747,7 @@ class TestPurchaseInvoice(FrappeTestCase, StockTestMixin): paid_to="Creditors - _TC", paid_amount=500, ) + pe.save() # save trigger is needed for set_liability_account() to be executed pe.submit() pi = make_purchase_invoice(