Frappe HR

Frappe HR

Department

Nova Industries is adding a quality inspection bench to its Pune plant. HR wants the inspectors in their own department, Plant Quality, under the Manufacturing group next to Production. Avery Stone will approve their leave, expenses and shift requests, their salaries are booked to the Main cost center, and nobody in the team can take leave during the year-end plant shutdown.

A Department is a functional unit of a company, such as Production, Plant Quality or Accounts. Departments form a tree for each company, so a group such as Manufacturing can hold sub-departments. You set the department on each Employee, and the department then supplies default approvers, a leave block list and a payroll cost center for its employees.

Before you begin

  • The company exists and has an abbreviation, here NID for Nova Industries.
  • If you want to use them, create the Leave Block List and the Cost Center first. Here the block list is Year-end Plant Shutdown, for 28 to 31 December 2026.
  • The approvers are users on the site.
  • You have the HR User or HR Manager role.

How departments are organized

Each company has its own branch of the tree under the root, All Departments. A department with Is Group ticked can hold other departments, and only a group can be selected as a parent. At Nova Industries, Manufacturing - NID is a group with Production - NID and Plant Quality - NID below it.

Department tree for Nova Industries with the Department link under Masters, the company filter and the Manufacturing - NID group with Plant Quality - NID and Production - NID highlighted

Create a Department

  1. Open the HR Setup workspace and select Department under Masters. Select Add Department, or select a group in the tree and add a child to it.
  2. Enter the Department name without the company, here Plant Quality, and select the Company, here Nova Industries.
  3. Select the Parent Department, here Manufacturing - NID. Leave it empty to put the department directly under All Departments. Tick Is Group only if the new department will have sub-departments.
  4. Optionally, select the Payroll Cost Center, here Main - NID, and the Leave Block List, here Year-end Plant Shutdown.
  5. Under the approvers section, add a row to Shift Request Approver, Leave Approver and Expense Approver for each user who can approve, here avery.stone@nova.example in all three. Save.
    New Department form with Department Plant Quality, Company Nova Industries, Parent Department Manufacturing - NID, Payroll Cost Center Main - NID, Leave Block List Year-end Plant Shutdown and the three approver tables with avery.stone@nova.example highlighted

On save, the company abbreviation is added to the name, so Plant Quality becomes Plant Quality - NID. This keeps the names unique when two companies have a department of the same name. A rename keeps the abbreviation too.

Saved Department Plant Quality - NID with the title and the Department name Plant Quality highlighted

Approvers

The approver tables give the default approvers for the department's employees. When an employee creates a Leave Application, an Expense Claim or a Shift Request, the approver set on their Employee record is used first. If the Employee has none, the first approver in the department's table is filled in.

The approver list on those forms offers the employee's own approver, then the approvers of their department and of each parent department above it. Disabled users and disabled departments are left out. So an approver set on Manufacturing - NID can also approve for Plant Quality - NID.

Leave Block List

The Leave Block List set on a department applies to all its employees, in addition to any block list that applies to all departments of the company. Employees cannot apply for leave on its dates unless their user is on the list's allowed list. At Nova Industries, no Plant Quality inspector can take leave from 28 to 31 December 2026 while the plant is shut down for maintenance.

Payroll Cost Center

When you select a department on an Employee, the Employee's Payroll Cost Center is filled in from the department. Payroll Entry then books the salaries of that employee to this cost center. Setting it on the department saves you from setting it on each employee, and you can still change it on an individual Employee.

Where the Department is used

Where What the Department does
Payroll Entry and Salary Slip Filters the employees in a payroll run; each slip shows the department.
Leave Control Panel, Shift Assignment Tool, Employee Attendance Tool Narrows the list of employees to one department.
Appraisal Cycle Limits the appraisees of a cycle to a department.
Organizational Chart Groups the Directory by department and shows it on each card.

Disable a department

When a department is no longer used, tick Disabled instead of deleting it, so that old records keep their link. A disabled department no longer supplies approvers.

Troubleshooting

Parent Department must be a group

The department selected as parent does not have Is Group ticked. Open the parent, tick Is Group and save, then select it again.

Parent Department must belong to the same company

The parent belongs to another company. Select a parent from the same company's branch of the tree, or leave the parent empty.

Department company cannot be changed

The company of a saved department is fixed. Create a department for the other company and move the employees to it, then disable the old one.

The department's approver is not offered

The approver's user is disabled, or the department is disabled. Enable the user, or add the approver to another department of the employee's branch of the tree.

Frequently asked questions

Why does the department name end with the company abbreviation?

Frappe HR adds the abbreviation so that each company can have its own department with the same name, such as Production - NID for Nova Industries.

Can one department be used by two companies?

Each department belongs to one company. Create a department of the same name in each company; the abbreviation keeps them apart.

Last updated 1 week ago
Was this helpful?
Thanks!