From b59f5bf48482d641be1f971a2a2937ef7d1901e0 Mon Sep 17 00:00:00 2001 From: jeowsome Date: Sat, 12 Oct 2024 21:58:24 +0800 Subject: [PATCH] included other fields to update on the patch --- suppliers_portal/patches/oct_12.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suppliers_portal/patches/oct_12.py b/suppliers_portal/patches/oct_12.py index 7d846d4..9159a87 100644 --- a/suppliers_portal/patches/oct_12.py +++ b/suppliers_portal/patches/oct_12.py @@ -31,6 +31,6 @@ def update_invoice_status(): for invoice in invoices: invoice_doc = frappe.get_doc("Invoices", invoice) - invoice_doc.update_status() + invoice_doc.validate() frappe.db.commit()