Skip to content

Commit

Permalink
feat: set company in job opening route
Browse files Browse the repository at this point in the history
(cherry picked from commit 70362de)
  • Loading branch information
ruchamahabal authored and mergify[bot] committed Dec 12, 2023
1 parent c1f9cf8 commit 5ed1f68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hrms/hr/doctype/job_opening/job_opening.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def autoname(self):

def validate(self):
if not self.route:
self.route = f"jobs/{frappe.scrub(self.job_title).replace('_', '-')}"
self.route = (
f"jobs/{frappe.scrub(self.company)}/{frappe.scrub(self.job_title).replace('_', '-')}"
)
self.validate_dates()
self.validate_current_vacancies()
self.update_job_requisition_status()
Expand Down

0 comments on commit 5ed1f68

Please sign in to comment.