Skip to content

Commit

Permalink
fix(RFQ): link to supplier portal
Browse files Browse the repository at this point in the history
(cherry picked from commit fd91f2c)
  • Loading branch information
barredterra authored and mergify[bot] committed Aug 8, 2023
1 parent 00b9df0 commit eb2f68e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ def get_link(self):
route = frappe.db.get_value(
"Portal Menu Item", {"reference_doctype": "Request for Quotation"}, ["route"]
)
return get_url("/app/{0}/".format(route) + self.name)
if not route:
frappe.throw(_("Please add Request for Quotation to the sidebar in Portal Settings."))

return get_url(f"{route}/{self.name}")

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

0 comments on commit eb2f68e

Please sign in to comment.