fix: allow pending orders to be searched across multiple POS configs in pos_session
This commit is contained in:
parent
f5f5af9025
commit
7f014742cb
@ -40,7 +40,7 @@ class PosSession(models.Model):
|
|||||||
|
|
||||||
# Find draft orders belonging to closed sessions of the same POS
|
# Find draft orders belonging to closed sessions of the same POS
|
||||||
pending_orders = self.env['pos.order'].search([
|
pending_orders = self.env['pos.order'].search([
|
||||||
('session_id.config_id', '=', self.config_id.id),
|
('session_id.config_id', 'in', self.mapped('config_id').ids),
|
||||||
('session_id.state', '=', 'closed'),
|
('session_id.state', '=', 'closed'),
|
||||||
('state', '=', 'draft')
|
('state', '=', 'draft')
|
||||||
])
|
])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user