From c4358c049a1a5be99018723316d92646b2856197 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 11 Feb 2025 14:52:21 +0530 Subject: [PATCH] fix: map project from rfq to supplier quotation (backport #45745) (#45827) * 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 a65fe30f050..08685f35148 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py @@ -330,7 +330,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 9381bbb4706..310d26a52cc 100644 --- a/erpnext/stock/doctype/material_request/material_request.py +++ b/erpnext/stock/doctype/material_request/material_request.py @@ -430,7 +430,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"], ], }, },