There is always only one pos order displayed at a time in the odoo pos.
How can I get this specific pos order using rpc api ?
The way POS order in Odoo works that it only syncs orders with backend server after the order is confirmed that is after the payment is confirmed. Until then, the orders are stored in the browser localstorage. rpc
is used to get data from Odoo backend from an external service, so it is possible to get Pos Orders that are confirmed from current open sessions using rpc
via pos.order
model but I don't think it is possible to get currently processing POS order. You can get the current POS Order object from browser console by running the following command posmodel.get_order()
.