[Fix] RFQ list showing to all supplier in the portal (#10023)
This commit is contained in:
parent
05e51d6c83
commit
49a6b4a4fa
@ -100,7 +100,10 @@ class RequestforQuotation(BuyingController):
|
|||||||
else:
|
else:
|
||||||
contact = frappe.new_doc("Contact")
|
contact = frappe.new_doc("Contact")
|
||||||
contact.first_name = rfq_supplier.supplier_name or rfq_supplier.supplier
|
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:
|
if not contact.email_id and not contact.user:
|
||||||
contact.email_id = user.name
|
contact.email_id = user.name
|
||||||
|
@ -30,7 +30,7 @@ def get_transaction_list(doctype, txt=None, filters=None, limit_start=0, limit_p
|
|||||||
else:
|
else:
|
||||||
filters.append((doctype, "docstatus", "=", 1))
|
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
|
parties_doctype = 'Request for Quotation Supplier' if doctype == 'Request for Quotation' else doctype
|
||||||
# find party for this contact
|
# find party for this contact
|
||||||
customers, suppliers = get_customers_suppliers(parties_doctype, user)
|
customers, suppliers = get_customers_suppliers(parties_doctype, user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user