Merge pull request #27346 from Ninad1306/before_mapping
fix: Before Mapping the Doc run `before_mapping` hook
This commit is contained in:
commit
3eeeab72a2
1 changed files with 2 additions and 0 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue