Skip to content

Commit

Permalink
fix: Supplier RFQ email link (#34338)
Browse files Browse the repository at this point in the history
fix: Supplier RFQ email link (#34338)

(cherry picked from commit fc86a85)

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
  • Loading branch information
mergify[bot] and deepeshgarg007 authored Apr 1, 2023
1 parent dcf62dc commit a00459a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ def send_to_supplier(self):

def get_link(self):
# RFQ link for supplier portal
return get_url("/app/request-for-quotation/" + self.name)
route = frappe.db.get_value(
"Portal Menu Item", {"reference_doctype": "Request for Quotation"}, ["route"]
)
return get_url("/app/{0}/".format(route) + self.name)

def update_supplier_part_no(self, supplier):
self.vendor = supplier
Expand Down

0 comments on commit a00459a

Please sign in to comment.