I want to know how odoo pos working in offline. I checked other resources but i cant found anything.I cant find anything in their official site or nothing found in any other site.
Asked
Active
Viewed 1,031 times
7
-
1Well, by saving data on the client side and sending them to the server when the connection is restored. Is there a particular function of the POS that you want to know more about ? – George Daramouskas Jan 28 '17 at 19:44
-
Yes thats what i want to know. – Thameem Jan 31 '17 at 06:54
-
have you seen the docs – Yasar Arafath Feb 01 '17 at 11:17
-
yes but i can't find about POS technically. – Thameem Feb 01 '17 at 11:18
-
Have you built the software already? – leonardeveloper Oct 22 '18 at 15:13
1 Answers
4
inside every browser there is cache memory so.. the pos stores the data in the cache memory of the browser called DOM( Document Object Model) so, it saves the data as the object. like in the pos there is order so, it creates the object of order in the DOM and saves the customer detail in it as same as for the cart item it stores that in DOM.
and there is a javascript method which calls the actual code in server so, that order get saved and processed. but if the connection is loss or nework not available then it storing data to that cache means DOM.. and when it get connection because it pinging at every perticualar time interval it sends all this stored data to the server and process it.
in short it is a magic of javascript.

Chavada Viki
- 1,514
- 1
- 12
- 22
-
-
Sorry i forgot to tell you .. you need to install "Firebug" plugin for that in browser. after install by pressing F12 you can see the DOM tab in that you can find the objects of the POS. – Chavada Viki Feb 15 '17 at 09:32
-
-
-
-
-
Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/135752/discussion-between-viki-chavada-and-yasar-arafath). – Chavada Viki Feb 15 '17 at 10:19
-
1