From 7c1595e2c2ba2192183ede916bea8dfbdbb37433 Mon Sep 17 00:00:00 2001 From: s-aga-r Date: Wed, 12 Jan 2022 10:03:36 +0530 Subject: [PATCH] fix: add company filter in RFQ Items (cherry picked from commit ca0485a503aacb7d96700a060bd2367a9d03366a) --- .../doctype/request_for_quotation/request_for_quotation.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js index 31a4837d463f..98c7dc9bd323 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js @@ -22,6 +22,13 @@ frappe.ui.form.on("Request for Quotation",{ } }; } + + frm.set_query('warehouse', 'items', () => ({ + filters: { + company: frm.doc.company, + is_group: 0 + } + })); }, onload: function(frm) {