pos_shift_close/models/pos_config.py
2026-03-20 15:18:52 +07:00

11 lines
409 B
Python

from odoo import fields, models
class PosConfig(models.Model):
_inherit = 'pos.config'
morning_shift_end_time = fields.Float(
string='Morning Shift End Time',
default=15.0,
help="Time (in hours) after which closing a POS session will run the standard checks for draft orders, preventing closure. Before this time, the check is bypassed so the morning shift can close."
)