[Fix] RFQ list showing to all supplier in the portal (#10023)

This commit is contained in:
rohitwaghchaure 2017-07-25 14:12:58 +05:30 committed by Nabin Hait
parent 05e51d6c83
commit 49a6b4a4fa
2 changed files with 5 additions and 2 deletions

View File

@ -100,7 +100,10 @@ class RequestforQuotation(BuyingController):
else:
contact = frappe.new_doc("Contact")
contact.first_name = rfq_supplier.supplier_name or rfq_supplier.supplier
contact.supplier = rfq_supplier.supplier
contact.append('links', {
'link_doctype': 'Supplier',
'link_name': rfq_supplier.supplier
})
if not contact.email_id and not contact.user:
contact.email_id = user.name

View File

@ -30,7 +30,7 @@ def get_transaction_list(doctype, txt=None, filters=None, limit_start=0, limit_p
else:
filters.append((doctype, "docstatus", "=", 1))
if user != "Guest" and is_website_user():
if (user != "Guest" and is_website_user()) or doctype == 'Request for Quotation':
parties_doctype = 'Request for Quotation Supplier' if doctype == 'Request for Quotation' else doctype
# find party for this contact
customers, suppliers = get_customers_suppliers(parties_doctype, user)