GithubHelp home page GithubHelp logo

Comments (8)

legalsylvain avatar legalsylvain commented on August 23, 2024

Thanks a lot for that tests, and that interesting durations !

CC : @hparfr are you using this module in production ?

Kind regards.

from pos.

hparfr avatar hparfr commented on August 23, 2024

@JGarcia-Panach Thanks for this work.

I didn't work on the project recently so I can't do any tests now.
As far as I remember, in my setup it did accelerate the loading time in prod for all the pos (often with poor connection).

In my project, there was only few products with images (less than 10%), and other pos modules were installed.

@JGarcia-Panach : how many images requests are done when you load the pos? (as many as displayed or all products)

from pos.

legalsylvain avatar legalsylvain commented on August 23, 2024

Indeed, I now remember how odoo works.
images are not loaded at the beginning of the POS (as the other data), but when product are displayed. (so only the first 80 when the POS is loaded.
but after, when you do a request. (typing a char in the search box), or selecting a category, others requests will be done to the server.
So it's quite normal that this module do not reduce loading time, but yes save connection during all the use of the POS.

(you can check the server log when you use products search)

from pos.

cvinh avatar cvinh commented on August 23, 2024

__init__.py is empty !

from pos.

pedrobaeza avatar pedrobaeza commented on August 23, 2024

Because this is done through JS

from pos.

cvinh avatar cvinh commented on August 23, 2024

#153

from pos.

cvinh avatar cvinh commented on August 23, 2024

@pedrobaeza I was talking about the inheritance for product.template that added has_image boolean field. I did a PR

from pos.

pedrobaeza avatar pedrobaeza commented on August 23, 2024

Fixed in #153

from pos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.