Implement KDS integration for POS order lines, adding preparation status, timing, and notification mechanisms.
This commit is contained in:
parent
f87c69b3aa
commit
823dfe0fdf
@ -12,7 +12,11 @@ class PosOrderLine(models.Model):
|
||||
('ready', 'Ready'),
|
||||
('served', 'Served'),
|
||||
('cancelled', 'Cancelled')
|
||||
], string='Preparation Status', default='waiting', tracking=True)
|
||||
], string='Preparation Status', default='waiting', tracking=True, group_expand='_read_group_preparation_status')
|
||||
|
||||
@api.model
|
||||
def _read_group_preparation_status(self, stages, domain, order):
|
||||
return ['waiting', 'preparing', 'ready', 'served']
|
||||
|
||||
color = fields.Integer(string='Color', default=0)
|
||||
preparation_time_start = fields.Datetime(string='Start Time')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user