How OOP POS Works

I want to know how odoo pos works offline. I checked other resources, but I did not find anything. I can not find anything on my official site or find nothing on any other site.

+7
openerp point-of-sale odoo-8
source share
1 answer

each browser has a cache, so .. pos stores data in the browser’s cache called the DOM (Document Object Model), so it saves the data as an object. for example, there is order in order, it creates an order object in the DOM and stores client details in it in the same way as for the basket item that it stores in the DOM.

and there is a javascript method that calls the actual code on the server so that this order is saved and processed. but if the connection is lost or Nework is unavailable, then storing data in this cache means DOM .. and when it receives the connection, because it pinging at every perticualar time interval, it sends all this saved data to the server and processes it.

In short, this is the magic of javascript.

+2
source share

All Articles