refactor: update docstring for _is_morning_shift_bypass to clarify time-based validation logic

This commit is contained in:
Suherdy Yacob 2026-05-18 10:42:12 +07:00
parent cfdf586fcd
commit 34ef6569b5
2 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class PosSession(models.Model):
_inherit = 'pos.session'
def _is_morning_shift_bypass(self):
"""Check if we should bypass draft order validation based on shift time."""
"""Check if we should bypass draft order validation based on current time."""
self.ensure_one()
if self.config_id.morning_shift_end_time:
user_tz = pytz.timezone('Asia/Jakarta')