From 3e0c51879e8a17a8be8ce622e9fbbce93eeab2b8 Mon Sep 17 00:00:00 2001 From: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com> Date: Wed, 6 May 2020 10:46:13 +0530 Subject: [PATCH] fix: Set Purchase Receipt and Delivery Note detail patch (#21607) * fix: Set Purchase Receipt and Delievry Note detail patch * fix: Reload purchase receipt item --- .../v12_0/set_purchase_receipt_delivery_note_detail.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/patches/v12_0/set_purchase_receipt_delivery_note_detail.py b/erpnext/patches/v12_0/set_purchase_receipt_delivery_note_detail.py index f5bd8c3aa2..6f843cdabd 100644 --- a/erpnext/patches/v12_0/set_purchase_receipt_delivery_note_detail.py +++ b/erpnext/patches/v12_0/set_purchase_receipt_delivery_note_detail.py @@ -3,6 +3,10 @@ import frappe from collections import defaultdict def execute(): + + frappe.reload_doc('stock', 'doctype', 'delivery_note_item', force=True) + frappe.reload_doc('stock', 'doctype', 'purchase_receipt_item', force=True) + def map_rows(doc_row, return_doc_row, detail_field, doctype): """Map rows after identifying similar ones."""