Odoo Help


POS Where does the data store when you work in offline mode? V8

on 3/13/15, 10:23 AM 2,592 views


what happens if I am working in POS on PC and I suddenly lose an internet connection? If I close the POS, im screwed, so I keep it open and continue selling. But how does the POS know what items are in my stock? Does data store localy in browser? Or somewhere permanently on hard drive?  What happens when I get an internet connection back, does the data sync (invoices and stock) ?

When the POS module is started everything is loaded in the cache thanks to the javascript framework that is implemented (backbonejs). This gets all data and makes it available in the POS up untill you close it, then backbonejs will write the new records etc in your Odoo db.

on 3/13/15, 10:36 AM

Cache of hard drive or browser ? If my browser (lets say Chrome for example) crashes, then I lose my entire work?

on 3/13/15, 10:39 AM

I think it is actually cached in the (virtual) memory of your server, so the computer/server where your Odoo is installed on will load all the values in its memory.

on 3/13/15, 10:42 AM

I am talking about losing data in offline mode, if my Chrome crashes. So if i work offline and my Chrome crashes then i lose all the data. Am I right?

on 3/13/15, 10:49 AM

Correct, if there is no internet and your browser crashes or your pc goes down you should have lost all the data. But I'd like a second confirmation on this :)

on 3/13/15, 11:17 AM

Ivan Elizaryev

--Ivan Elizaryev--
| 4 3 7
Ufa, Russian Federation
--Ivan Elizaryev--

I tried odoo at the end of 2013. I fell in love in it and have been working with odoo as a freelancer for almost two years. In September 2015 I began operate as a Company and have 5 developers for now.

Ivan, March 2016.

Ivan Elizaryev
On 3/13/15, 4:35 PM

Yes, it's stored locally in js variable localStorage . Check addons/point_of_sale/static/src/js/db.js

If you lost internet connection and close browser, then transactions would be restored at the next session. But you have to open the same browser on the same computer and browser's cache should be there.

On 3/17/15, 4:52 AM

Ivan your explanation seems to be the most logical answer. Thank you 

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/13/15, 10:23 AM
Seen: 2592 times
Last updated: 3/17/15, 4:52 AM