refactor: update docstring for _is_morning_shift_bypass to clarify time-based validation logic
This commit is contained in:
parent
cfdf586fcd
commit
34ef6569b5
Binary file not shown.
@ -7,7 +7,7 @@ class PosSession(models.Model):
|
|||||||
_inherit = 'pos.session'
|
_inherit = 'pos.session'
|
||||||
|
|
||||||
def _is_morning_shift_bypass(self):
|
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()
|
self.ensure_one()
|
||||||
if self.config_id.morning_shift_end_time:
|
if self.config_id.morning_shift_end_time:
|
||||||
user_tz = pytz.timezone('Asia/Jakarta')
|
user_tz = pytz.timezone('Asia/Jakarta')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user