feat: Add task weight for employee onboarding activity (#17216)
This activity weight will be used to update the task weight
This commit is contained in:
parent
54ba900e72
commit
c90364f94d
@ -1,291 +1,341 @@
|
|||||||
{
|
{
|
||||||
"allow_copy": 0,
|
"allow_copy": 0,
|
||||||
"allow_guest_to_view": 0,
|
"allow_events_in_timeline": 0,
|
||||||
"allow_import": 0,
|
"allow_guest_to_view": 0,
|
||||||
"allow_rename": 0,
|
"allow_import": 0,
|
||||||
"beta": 0,
|
"allow_rename": 0,
|
||||||
"creation": "2018-05-09 05:37:18.439763",
|
"beta": 0,
|
||||||
"custom": 0,
|
"creation": "2018-05-09 05:37:18.439763",
|
||||||
"docstatus": 0,
|
"custom": 0,
|
||||||
"doctype": "DocType",
|
"docstatus": 0,
|
||||||
"document_type": "",
|
"doctype": "DocType",
|
||||||
"editable_grid": 1,
|
"document_type": "",
|
||||||
"engine": "InnoDB",
|
"editable_grid": 1,
|
||||||
|
"engine": "InnoDB",
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"allow_bulk_edit": 0,
|
"allow_bulk_edit": 0,
|
||||||
"allow_on_submit": 0,
|
"allow_in_quick_entry": 0,
|
||||||
"bold": 0,
|
"allow_on_submit": 0,
|
||||||
"collapsible": 0,
|
"bold": 0,
|
||||||
"columns": 0,
|
"collapsible": 0,
|
||||||
"fieldname": "activity_name",
|
"columns": 0,
|
||||||
"fieldtype": "Data",
|
"fetch_if_empty": 0,
|
||||||
"hidden": 0,
|
"fieldname": "activity_name",
|
||||||
"ignore_user_permissions": 0,
|
"fieldtype": "Data",
|
||||||
"ignore_xss_filter": 0,
|
"hidden": 0,
|
||||||
"in_filter": 0,
|
"ignore_user_permissions": 0,
|
||||||
"in_global_search": 0,
|
"ignore_xss_filter": 0,
|
||||||
"in_list_view": 1,
|
"in_filter": 0,
|
||||||
"in_standard_filter": 0,
|
"in_global_search": 0,
|
||||||
"label": "Activity Name",
|
"in_list_view": 1,
|
||||||
"length": 0,
|
"in_standard_filter": 0,
|
||||||
"no_copy": 0,
|
"label": "Activity Name",
|
||||||
"permlevel": 0,
|
"length": 0,
|
||||||
"precision": "",
|
"no_copy": 0,
|
||||||
"print_hide": 0,
|
"permlevel": 0,
|
||||||
"print_hide_if_no_value": 0,
|
"precision": "",
|
||||||
"read_only": 0,
|
"print_hide": 0,
|
||||||
"remember_last_selected_value": 0,
|
"print_hide_if_no_value": 0,
|
||||||
"report_hide": 0,
|
"read_only": 0,
|
||||||
"reqd": 0,
|
"remember_last_selected_value": 0,
|
||||||
"search_index": 0,
|
"report_hide": 0,
|
||||||
"set_only_once": 0,
|
"reqd": 0,
|
||||||
"translatable": 0,
|
"search_index": 0,
|
||||||
|
"set_only_once": 0,
|
||||||
|
"translatable": 0,
|
||||||
"unique": 0
|
"unique": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_bulk_edit": 0,
|
"allow_bulk_edit": 0,
|
||||||
"allow_on_submit": 0,
|
"allow_in_quick_entry": 0,
|
||||||
"bold": 0,
|
"allow_on_submit": 0,
|
||||||
"collapsible": 0,
|
"bold": 0,
|
||||||
"columns": 0,
|
"collapsible": 0,
|
||||||
"fieldname": "user",
|
"columns": 0,
|
||||||
"fieldtype": "Link",
|
"fetch_if_empty": 0,
|
||||||
"hidden": 0,
|
"fieldname": "user",
|
||||||
"ignore_user_permissions": 0,
|
"fieldtype": "Link",
|
||||||
"ignore_xss_filter": 0,
|
"hidden": 0,
|
||||||
"in_filter": 0,
|
"ignore_user_permissions": 0,
|
||||||
"in_global_search": 0,
|
"ignore_xss_filter": 0,
|
||||||
"in_list_view": 1,
|
"in_filter": 0,
|
||||||
"in_standard_filter": 0,
|
"in_global_search": 0,
|
||||||
"label": "User",
|
"in_list_view": 1,
|
||||||
"length": 0,
|
"in_standard_filter": 0,
|
||||||
"no_copy": 0,
|
"label": "User",
|
||||||
"options": "User",
|
"length": 0,
|
||||||
"permlevel": 0,
|
"no_copy": 0,
|
||||||
"precision": "",
|
"options": "User",
|
||||||
"print_hide": 0,
|
"permlevel": 0,
|
||||||
"print_hide_if_no_value": 0,
|
"precision": "",
|
||||||
"read_only": 0,
|
"print_hide": 0,
|
||||||
"remember_last_selected_value": 0,
|
"print_hide_if_no_value": 0,
|
||||||
"report_hide": 0,
|
"read_only": 0,
|
||||||
"reqd": 0,
|
"remember_last_selected_value": 0,
|
||||||
"search_index": 0,
|
"report_hide": 0,
|
||||||
"set_only_once": 0,
|
"reqd": 0,
|
||||||
"translatable": 0,
|
"search_index": 0,
|
||||||
|
"set_only_once": 0,
|
||||||
|
"translatable": 0,
|
||||||
"unique": 0
|
"unique": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_bulk_edit": 0,
|
"allow_bulk_edit": 0,
|
||||||
"allow_on_submit": 0,
|
"allow_in_quick_entry": 0,
|
||||||
"bold": 0,
|
"allow_on_submit": 0,
|
||||||
"collapsible": 0,
|
"bold": 0,
|
||||||
"columns": 0,
|
"collapsible": 0,
|
||||||
"fieldname": "role",
|
"columns": 0,
|
||||||
"fieldtype": "Link",
|
"fetch_if_empty": 0,
|
||||||
"hidden": 0,
|
"fieldname": "role",
|
||||||
"ignore_user_permissions": 0,
|
"fieldtype": "Link",
|
||||||
"ignore_xss_filter": 0,
|
"hidden": 0,
|
||||||
"in_filter": 0,
|
"ignore_user_permissions": 0,
|
||||||
"in_global_search": 0,
|
"ignore_xss_filter": 0,
|
||||||
"in_list_view": 1,
|
"in_filter": 0,
|
||||||
"in_standard_filter": 0,
|
"in_global_search": 0,
|
||||||
"label": "Role",
|
"in_list_view": 1,
|
||||||
"length": 0,
|
"in_standard_filter": 0,
|
||||||
"no_copy": 0,
|
"label": "Role",
|
||||||
"options": "Role",
|
"length": 0,
|
||||||
"permlevel": 0,
|
"no_copy": 0,
|
||||||
"precision": "",
|
"options": "Role",
|
||||||
"print_hide": 0,
|
"permlevel": 0,
|
||||||
"print_hide_if_no_value": 0,
|
"precision": "",
|
||||||
"read_only": 0,
|
"print_hide": 0,
|
||||||
"remember_last_selected_value": 0,
|
"print_hide_if_no_value": 0,
|
||||||
"report_hide": 0,
|
"read_only": 0,
|
||||||
"reqd": 0,
|
"remember_last_selected_value": 0,
|
||||||
"search_index": 0,
|
"report_hide": 0,
|
||||||
"set_only_once": 0,
|
"reqd": 0,
|
||||||
"translatable": 0,
|
"search_index": 0,
|
||||||
|
"set_only_once": 0,
|
||||||
|
"translatable": 0,
|
||||||
"unique": 0
|
"unique": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_bulk_edit": 0,
|
"allow_bulk_edit": 0,
|
||||||
"allow_on_submit": 0,
|
"allow_in_quick_entry": 0,
|
||||||
"bold": 0,
|
"allow_on_submit": 0,
|
||||||
"collapsible": 0,
|
"bold": 0,
|
||||||
"columns": 0,
|
"collapsible": 0,
|
||||||
"fieldname": "column_break_3",
|
"columns": 0,
|
||||||
"fieldtype": "Column Break",
|
"fetch_if_empty": 0,
|
||||||
"hidden": 0,
|
"fieldname": "column_break_3",
|
||||||
"ignore_user_permissions": 0,
|
"fieldtype": "Column Break",
|
||||||
"ignore_xss_filter": 0,
|
"hidden": 0,
|
||||||
"in_filter": 0,
|
"ignore_user_permissions": 0,
|
||||||
"in_global_search": 0,
|
"ignore_xss_filter": 0,
|
||||||
"in_list_view": 0,
|
"in_filter": 0,
|
||||||
"in_standard_filter": 0,
|
"in_global_search": 0,
|
||||||
"length": 0,
|
"in_list_view": 0,
|
||||||
"no_copy": 0,
|
"in_standard_filter": 0,
|
||||||
"permlevel": 0,
|
"length": 0,
|
||||||
"precision": "",
|
"no_copy": 0,
|
||||||
"print_hide": 0,
|
"permlevel": 0,
|
||||||
"print_hide_if_no_value": 0,
|
"precision": "",
|
||||||
"read_only": 0,
|
"print_hide": 0,
|
||||||
"remember_last_selected_value": 0,
|
"print_hide_if_no_value": 0,
|
||||||
"report_hide": 0,
|
"read_only": 0,
|
||||||
"reqd": 0,
|
"remember_last_selected_value": 0,
|
||||||
"search_index": 0,
|
"report_hide": 0,
|
||||||
"set_only_once": 0,
|
"reqd": 0,
|
||||||
"translatable": 0,
|
"search_index": 0,
|
||||||
|
"set_only_once": 0,
|
||||||
|
"translatable": 0,
|
||||||
"unique": 0
|
"unique": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_bulk_edit": 0,
|
"allow_bulk_edit": 0,
|
||||||
"allow_on_submit": 0,
|
"allow_in_quick_entry": 0,
|
||||||
"bold": 0,
|
"allow_on_submit": 0,
|
||||||
"collapsible": 0,
|
"bold": 0,
|
||||||
"columns": 0,
|
"collapsible": 0,
|
||||||
"fieldname": "task",
|
"columns": 0,
|
||||||
"fieldtype": "Link",
|
"fetch_if_empty": 0,
|
||||||
"hidden": 0,
|
"fieldname": "task",
|
||||||
"ignore_user_permissions": 0,
|
"fieldtype": "Link",
|
||||||
"ignore_xss_filter": 0,
|
"hidden": 0,
|
||||||
"in_filter": 0,
|
"ignore_user_permissions": 0,
|
||||||
"in_global_search": 0,
|
"ignore_xss_filter": 0,
|
||||||
"in_list_view": 0,
|
"in_filter": 0,
|
||||||
"in_standard_filter": 0,
|
"in_global_search": 0,
|
||||||
"label": "Task",
|
"in_list_view": 0,
|
||||||
"length": 0,
|
"in_standard_filter": 0,
|
||||||
"no_copy": 1,
|
"label": "Task",
|
||||||
"options": "Task",
|
"length": 0,
|
||||||
"permlevel": 0,
|
"no_copy": 1,
|
||||||
"precision": "",
|
"options": "Task",
|
||||||
"print_hide": 0,
|
"permlevel": 0,
|
||||||
"print_hide_if_no_value": 0,
|
"precision": "",
|
||||||
"read_only": 1,
|
"print_hide": 0,
|
||||||
"remember_last_selected_value": 0,
|
"print_hide_if_no_value": 0,
|
||||||
"report_hide": 0,
|
"read_only": 1,
|
||||||
"reqd": 0,
|
"remember_last_selected_value": 0,
|
||||||
"search_index": 0,
|
"report_hide": 0,
|
||||||
"set_only_once": 0,
|
"reqd": 0,
|
||||||
"translatable": 0,
|
"search_index": 0,
|
||||||
|
"set_only_once": 0,
|
||||||
|
"translatable": 0,
|
||||||
"unique": 0
|
"unique": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_bulk_edit": 0,
|
"allow_bulk_edit": 0,
|
||||||
"allow_on_submit": 0,
|
"allow_in_quick_entry": 0,
|
||||||
"bold": 0,
|
"allow_on_submit": 0,
|
||||||
"collapsible": 0,
|
"bold": 0,
|
||||||
"columns": 0,
|
"collapsible": 0,
|
||||||
"description": "Applicable in the case of Employee Onboarding",
|
"columns": 0,
|
||||||
"fieldname": "required_for_employee_creation",
|
"default": "1",
|
||||||
"fieldtype": "Check",
|
"fetch_if_empty": 0,
|
||||||
"hidden": 0,
|
"fieldname": "task_weight",
|
||||||
"ignore_user_permissions": 0,
|
"fieldtype": "Float",
|
||||||
"ignore_xss_filter": 0,
|
"hidden": 0,
|
||||||
"in_filter": 0,
|
"ignore_user_permissions": 0,
|
||||||
"in_global_search": 0,
|
"ignore_xss_filter": 0,
|
||||||
"in_list_view": 0,
|
"in_filter": 0,
|
||||||
"in_standard_filter": 0,
|
"in_global_search": 0,
|
||||||
"label": "Required for Employee Creation",
|
"in_list_view": 0,
|
||||||
"length": 0,
|
"in_standard_filter": 0,
|
||||||
"no_copy": 0,
|
"label": "Task Weight",
|
||||||
"permlevel": 0,
|
"length": 0,
|
||||||
"precision": "",
|
"no_copy": 0,
|
||||||
"print_hide": 0,
|
"permlevel": 0,
|
||||||
"print_hide_if_no_value": 0,
|
"precision": "",
|
||||||
"read_only": 0,
|
"print_hide": 0,
|
||||||
"remember_last_selected_value": 0,
|
"print_hide_if_no_value": 0,
|
||||||
"report_hide": 0,
|
"read_only": 0,
|
||||||
"reqd": 0,
|
"remember_last_selected_value": 0,
|
||||||
"search_index": 0,
|
"report_hide": 0,
|
||||||
"set_only_once": 0,
|
"reqd": 0,
|
||||||
"translatable": 0,
|
"search_index": 0,
|
||||||
|
"set_only_once": 0,
|
||||||
|
"translatable": 0,
|
||||||
"unique": 0
|
"unique": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_bulk_edit": 0,
|
"allow_bulk_edit": 0,
|
||||||
"allow_on_submit": 0,
|
"allow_in_quick_entry": 0,
|
||||||
"bold": 0,
|
"allow_on_submit": 0,
|
||||||
"collapsible": 0,
|
"bold": 0,
|
||||||
"columns": 0,
|
"collapsible": 0,
|
||||||
"fieldname": "section_break_6",
|
"columns": 0,
|
||||||
"fieldtype": "Section Break",
|
"description": "Applicable in the case of Employee Onboarding",
|
||||||
"hidden": 0,
|
"fetch_if_empty": 0,
|
||||||
"ignore_user_permissions": 0,
|
"fieldname": "required_for_employee_creation",
|
||||||
"ignore_xss_filter": 0,
|
"fieldtype": "Check",
|
||||||
"in_filter": 0,
|
"hidden": 0,
|
||||||
"in_global_search": 0,
|
"ignore_user_permissions": 0,
|
||||||
"in_list_view": 0,
|
"ignore_xss_filter": 0,
|
||||||
"in_standard_filter": 0,
|
"in_filter": 0,
|
||||||
"length": 0,
|
"in_global_search": 0,
|
||||||
"no_copy": 0,
|
"in_list_view": 0,
|
||||||
"permlevel": 0,
|
"in_standard_filter": 0,
|
||||||
"precision": "",
|
"label": "Required for Employee Creation",
|
||||||
"print_hide": 0,
|
"length": 0,
|
||||||
"print_hide_if_no_value": 0,
|
"no_copy": 0,
|
||||||
"read_only": 0,
|
"permlevel": 0,
|
||||||
"remember_last_selected_value": 0,
|
"precision": "",
|
||||||
"report_hide": 0,
|
"print_hide": 0,
|
||||||
"reqd": 0,
|
"print_hide_if_no_value": 0,
|
||||||
"search_index": 0,
|
"read_only": 0,
|
||||||
"set_only_once": 0,
|
"remember_last_selected_value": 0,
|
||||||
"translatable": 0,
|
"report_hide": 0,
|
||||||
|
"reqd": 0,
|
||||||
|
"search_index": 0,
|
||||||
|
"set_only_once": 0,
|
||||||
|
"translatable": 0,
|
||||||
"unique": 0
|
"unique": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_bulk_edit": 0,
|
"allow_bulk_edit": 0,
|
||||||
"allow_on_submit": 0,
|
"allow_in_quick_entry": 0,
|
||||||
"bold": 0,
|
"allow_on_submit": 0,
|
||||||
"collapsible": 0,
|
"bold": 0,
|
||||||
"columns": 0,
|
"collapsible": 0,
|
||||||
"fieldname": "description",
|
"columns": 0,
|
||||||
"fieldtype": "Text Editor",
|
"fetch_if_empty": 0,
|
||||||
"hidden": 0,
|
"fieldname": "section_break_6",
|
||||||
"ignore_user_permissions": 0,
|
"fieldtype": "Section Break",
|
||||||
"ignore_xss_filter": 0,
|
"hidden": 0,
|
||||||
"in_filter": 0,
|
"ignore_user_permissions": 0,
|
||||||
"in_global_search": 0,
|
"ignore_xss_filter": 0,
|
||||||
"in_list_view": 0,
|
"in_filter": 0,
|
||||||
"in_standard_filter": 0,
|
"in_global_search": 0,
|
||||||
"label": "Description",
|
"in_list_view": 0,
|
||||||
"length": 0,
|
"in_standard_filter": 0,
|
||||||
"no_copy": 0,
|
"length": 0,
|
||||||
"permlevel": 0,
|
"no_copy": 0,
|
||||||
"precision": "",
|
"permlevel": 0,
|
||||||
"print_hide": 0,
|
"precision": "",
|
||||||
"print_hide_if_no_value": 0,
|
"print_hide": 0,
|
||||||
"read_only": 0,
|
"print_hide_if_no_value": 0,
|
||||||
"remember_last_selected_value": 0,
|
"read_only": 0,
|
||||||
"report_hide": 0,
|
"remember_last_selected_value": 0,
|
||||||
"reqd": 0,
|
"report_hide": 0,
|
||||||
"search_index": 0,
|
"reqd": 0,
|
||||||
"set_only_once": 0,
|
"search_index": 0,
|
||||||
"translatable": 0,
|
"set_only_once": 0,
|
||||||
|
"translatable": 0,
|
||||||
|
"unique": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"allow_bulk_edit": 0,
|
||||||
|
"allow_in_quick_entry": 0,
|
||||||
|
"allow_on_submit": 0,
|
||||||
|
"bold": 0,
|
||||||
|
"collapsible": 0,
|
||||||
|
"columns": 0,
|
||||||
|
"fetch_if_empty": 0,
|
||||||
|
"fieldname": "description",
|
||||||
|
"fieldtype": "Text Editor",
|
||||||
|
"hidden": 0,
|
||||||
|
"ignore_user_permissions": 0,
|
||||||
|
"ignore_xss_filter": 0,
|
||||||
|
"in_filter": 0,
|
||||||
|
"in_global_search": 0,
|
||||||
|
"in_list_view": 0,
|
||||||
|
"in_standard_filter": 0,
|
||||||
|
"label": "Description",
|
||||||
|
"length": 0,
|
||||||
|
"no_copy": 0,
|
||||||
|
"permlevel": 0,
|
||||||
|
"precision": "",
|
||||||
|
"print_hide": 0,
|
||||||
|
"print_hide_if_no_value": 0,
|
||||||
|
"read_only": 0,
|
||||||
|
"remember_last_selected_value": 0,
|
||||||
|
"report_hide": 0,
|
||||||
|
"reqd": 0,
|
||||||
|
"search_index": 0,
|
||||||
|
"set_only_once": 0,
|
||||||
|
"translatable": 0,
|
||||||
"unique": 0
|
"unique": 0
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"has_web_view": 0,
|
"has_web_view": 0,
|
||||||
"hide_heading": 0,
|
"hide_toolbar": 0,
|
||||||
"hide_toolbar": 0,
|
"idx": 0,
|
||||||
"idx": 0,
|
"in_create": 0,
|
||||||
"image_view": 0,
|
"is_submittable": 0,
|
||||||
"in_create": 0,
|
"issingle": 0,
|
||||||
"is_submittable": 0,
|
"istable": 1,
|
||||||
"issingle": 0,
|
"max_attachments": 0,
|
||||||
"istable": 1,
|
"menu_index": 0,
|
||||||
"max_attachments": 0,
|
"modified": "2019-04-12 11:31:27.080747",
|
||||||
"modified": "2018-05-10 06:54:47.282492",
|
"modified_by": "Administrator",
|
||||||
"modified_by": "Administrator",
|
"module": "HR",
|
||||||
"module": "HR",
|
"name": "Employee Boarding Activity",
|
||||||
"name": "Employee Boarding Activity",
|
"name_case": "",
|
||||||
"name_case": "",
|
"owner": "Administrator",
|
||||||
"owner": "Administrator",
|
"permissions": [],
|
||||||
"permissions": [],
|
"quick_entry": 1,
|
||||||
"quick_entry": 1,
|
"read_only": 0,
|
||||||
"read_only": 0,
|
"show_name_in_global_search": 0,
|
||||||
"read_only_onload": 0,
|
"sort_field": "modified",
|
||||||
"show_name_in_global_search": 0,
|
"sort_order": "DESC",
|
||||||
"sort_field": "modified",
|
"track_changes": 1,
|
||||||
"sort_order": "DESC",
|
"track_seen": 0,
|
||||||
"track_changes": 1,
|
"track_views": 0
|
||||||
"track_seen": 0
|
|
||||||
}
|
}
|
@ -45,7 +45,8 @@ class EmployeeBoardingController(Document):
|
|||||||
"subject": activity.activity_name + " : " + self.employee_name,
|
"subject": activity.activity_name + " : " + self.employee_name,
|
||||||
"description": activity.description,
|
"description": activity.description,
|
||||||
"department": self.department,
|
"department": self.department,
|
||||||
"company": self.company
|
"company": self.company,
|
||||||
|
"task_weight": activity.task_weight
|
||||||
}).insert(ignore_permissions=True)
|
}).insert(ignore_permissions=True)
|
||||||
activity.db_set("task", task.name)
|
activity.db_set("task", task.name)
|
||||||
users = [activity.user] if activity.user else []
|
users = [activity.user] if activity.user else []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user