Merge pull request #27346 from Ninad1306/before_mapping

fix: Before Mapping the Doc run `before_mapping` hook
This commit is contained in:
Sagar Vora 2024-08-22 15:11:33 +05:30 committed by GitHub
commit 3eeeab72a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,6 +103,8 @@ def get_mapped_doc(
if not source_doc.has_permission("read"):
source_doc.raise_no_permission_to("read")
ret_doc.run_method("before_mapping", source_doc, table_maps)
map_doc(source_doc, target_doc, table_maps[source_doc.doctype])
row_exists_for_parentfield = {}