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()