fix: Set Purchase Receipt and Delivery Note detail patch (#21607)

* fix: Set Purchase Receipt and Delievry Note detail patch

* fix: Reload purchase receipt item
This commit is contained in:
Deepesh Garg 2020-05-06 10:46:13 +05:30 committed by GitHub
parent a4567a446f
commit 3e0c51879e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,10 @@ import frappe
from collections import defaultdict from collections import defaultdict
def execute(): 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): def map_rows(doc_row, return_doc_row, detail_field, doctype):
"""Map rows after identifying similar ones.""" """Map rows after identifying similar ones."""