Skip to content

Commit

Permalink
Merge pull request #3173 from ONE-F-M/version-15
Browse files Browse the repository at this point in the history
version-15 fixes to test-production
  • Loading branch information
pjamsheer authored Feb 14, 2024
2 parents 3abadbd + e711e52 commit caffab4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion one_fm/one_fm/doctype/attendance_check/attendance_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def before_insert(self):
# check shift permission
shift_permission = frappe.db.get_value("Shift Permission", {
"employee":self.employee, "date":self.date, "roster_type":self.roster_type, "docstatus":["!=", 0]},
["name", "date"], as_dict=1
["name"]
)
if shift_permission:
self.shift_permission = shift_permission
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ frappe.ui.form.on('Request for Material', {
frm.set_df_property('type', 'options', "\nIndividual\nDepartment\nProject\nOnboarding");
}
}
if(frm.doc.workflow_state == "Approved" || frm.doc.workflow_state == "Rejected"){
frm.set_df_property('items', 'allow_on_submit', 0);
frm.set_df_property('items', 'read_only', 1);
}
if(frm.is_new()){
frappe.call({
doc: frm.doc,
Expand Down

0 comments on commit caffab4

Please sign in to comment.