From b112d88767a3cd98a8c9a3a2804d3f491c4c7d4a Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 11 Feb 2025 14:52:13 +0530 Subject: [PATCH] fix: map project from rfq to supplier quotation (backport #45745) (#45828) * fix: map project from rfq to supplier quotation (cherry picked from commit d0479036bbfc72b531976809e8e8c33b2fdc61e4) * fix: add project field map from mr to rfq (cherry picked from commit 8fa39bec618dd490432c88c3e6d53ca4ae232e27) --------- Co-authored-by: HenningWendtland <156231187+HenningWendtland@users.noreply.github.com> --- .../doctype/request_for_quotation/request_for_quotation.py | 6 +++++- erpnext/stock/doctype/material_request/material_request.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py index 3a71733a003..bef41394742 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py @@ -394,7 +394,11 @@ def make_supplier_quotation_from_rfq(source_name, target_doc=None, for_supplier= }, "Request for Quotation Item": { "doctype": "Supplier Quotation Item", - "field_map": {"name": "request_for_quotation_item", "parent": "request_for_quotation"}, + "field_map": { + "name": "request_for_quotation_item", + "parent": "request_for_quotation", + "project_name": "project", + }, }, }, target_doc, diff --git a/erpnext/stock/doctype/material_request/material_request.py b/erpnext/stock/doctype/material_request/material_request.py index f59b60a3f51..69572e661f8 100644 --- a/erpnext/stock/doctype/material_request/material_request.py +++ b/erpnext/stock/doctype/material_request/material_request.py @@ -482,7 +482,7 @@ def make_request_for_quotation(source_name, target_doc=None): "field_map": [ ["name", "material_request_item"], ["parent", "material_request"], - ["uom", "uom"], + ["project", "project_name"], ], }, },