Skip to content

Commit c12ad79

Browse files
ruchamahabalmergify[bot]
authored andcommitted
fix: hide Create User Automatically checkbox if user is already selected
(cherry picked from commit ec3302d)
1 parent d093b71 commit c12ad79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

erpnext/setup/doctype/employee/employee.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
},
298298
{
299299
"default": "0",
300-
"depends_on": "eval:doc.__islocal",
300+
"depends_on": "eval:doc.__islocal && !doc.user_id",
301301
"description": "This will create User for this employee depending on the Company Email.",
302302
"fieldname": "create_user_automatically",
303303
"fieldtype": "Check",
@@ -834,7 +834,7 @@
834834
"image_field": "image",
835835
"is_tree": 1,
836836
"links": [],
837-
"modified": "2026-03-23 14:04:26.818864",
837+
"modified": "2026-03-23 14:05:42.144641",
838838
"modified_by": "Administrator",
839839
"module": "Setup",
840840
"name": "Employee",

0 commit comments

Comments
 (0)