Skip to content

Commit

Permalink
feat: override fiield inn shift status
Browse files Browse the repository at this point in the history
  • Loading branch information
anhilmy committed Sep 4, 2024
1 parent 23e5a07 commit 1db71ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inn/inn_hotels/doctype/inn_shift/inn_shift.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
from frappe.model.document import Document

class InnShift(Document):
pass
def before_insert(self):
self.status = "Open"

@frappe.whitelist()
def is_there_open_shift():
Expand Down

0 comments on commit 1db71ff

Please sign in to comment.