From f94afc1fff895b9e1255ef6b40f0f84cc32d0948 Mon Sep 17 00:00:00 2001 From: Saqib Ansari Date: Wed, 6 Apr 2022 22:14:37 +0530 Subject: [PATCH] fix(pos): reload doc before set value --- .../v13_0/set_return_against_in_pos_invoice_references.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/patches/v13_0/set_return_against_in_pos_invoice_references.py b/erpnext/patches/v13_0/set_return_against_in_pos_invoice_references.py index 6af9617bcee..fe9eb8b2cc1 100644 --- a/erpnext/patches/v13_0/set_return_against_in_pos_invoice_references.py +++ b/erpnext/patches/v13_0/set_return_against_in_pos_invoice_references.py @@ -19,6 +19,8 @@ def execute(): if not open_pos_closing_entries: return + frappe.reload_doc("Accounts", "doctype", "pos_invoice_reference") + POSInvoiceReference = frappe.qb.DocType("POS Invoice Reference") POSInvoice = frappe.qb.DocType("POS Invoice") pos_invoice_references = (