diff --git a/addons/point_of_sale/static/src/app/screens/ticket_screen/ticket_screen.js b/addons/point_of_sale/static/src/app/screens/ticket_screen/ticket_screen.js index ce44051cf00..20a3eb244ca 100644 --- a/addons/point_of_sale/static/src/app/screens/ticket_screen/ticket_screen.js +++ b/addons/point_of_sale/static/src/app/screens/ticket_screen/ticket_screen.js @@ -276,7 +276,7 @@ export class TicketScreen extends Component { const invoicedOrderIds = new Set( allToRefundDetails - .filter(detail => this._state.syncedOrders.cache[detail.orderline.orderBackendId].state === "invoiced") + .filter(detail => this._state.syncedOrders.cache[detail.orderline.orderBackendId]?.state === "invoiced") .map(detail => detail.orderline.orderBackendId) );