Community mailing list archives

Re: POS with local storage on disconnected networks

Cody Kitterman
- 06/28/2016 13:30:59

Are you a developer/making money implementing Odoo, or is your business the department store? I ask because I think I know how to make it work for everyone, but I have other work that doesn't involve the POS module, and I'm short on time to test... (Still, if it could be done, it would open up the POS app to a number of countries and I think that would be something pretty cool to be a part of...)

For instance, SQLite compiled to JavaScript through Emscripten, could give us all the offline storage we could need and solve the "no-gap" issue: when offline storage fills, sql.js dumps to a SQLite file, and clears the web storage... offline storage fills, again; sql.js dumps, again... Rinse and repeat, over and over... If the SQLite file approaches 500mb, sql.js starts a new one... When connection is finally restored, Odoo will start synchronizing the SQLite storage with the server, via the typical webworker/RPC calls... 

I've already thought of a number of problems that could crop up with that approach―"500mb is a lot to upload", etc.―but I'm convinced they can be worked through... I've also thought of some tests...

If you think could help, and don't mind sharing the code, email me directly...


"We assign each pos has its own sequence, this mitigate the risk about gaps."

What is this "sequence" you speak of? :-) Kidding... How to ensure the sequence is a nonce, so that when it's queried only one transaction displays? 

Cody K

On Tue, Jun 28, 2016 at 1:02 PM, Ovnicraft <> wrote:

On Thu, Jun 16, 2016 at 12:56 PM, Nhomar Hernandez <> wrote:

On Thu, Jun 16, 2016 at 10:07 AM, Carlos Paz <> wrote:
it CANNOT generate INVOICES offline.


- How will you respect the No Gap Sequence of Invoices Being Off Line?.

Good point,

We assign each pos has its own sequence, this mitigate the risk about gaps.

At least it is an Stand Alone System, the Invoicing process must be On Line, I am agree with that.

Nhomar Hernandez
CEO Vauxoo.
Twitter: @nhomar
Odoo Gold Partner
Skype: nhomar00 (Envia mail previo no lo superviso siempre).
Móvil Venezuela:
+58 4144110269
Móvil México:
+52 1 4773933942

Post to:

Cristian Salamea on
Cristian Salamea

Post to: