You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.5 KiB

  1. This module extends the functionality of point of sale to make PoS load faster
  2. and to improve products display.
  3. Point Of Sale Load faster
  4. =========================
  5. In the point of sale, loading products without image spend unnecessary time
  6. and resources.
  7. When you have 8000 products in your Point of Sale and most of them
  8. don't have images, removing thousands of useless requests is welcome:
  9. the PoS loads faster that way.
  10. Improve products display
  11. ========================
  12. By default, Odoo PoS display a useless generic image for products that doesn't
  13. have images.
  14. .. figure:: ../static/description/pos_display_default.png
  15. :width: 800 px
  16. With this module, the display of the product is changed, (Size of the name
  17. is increased for better visibility);
  18. .. figure:: ../static/description/pos_display_improved.png
  19. :width: 800 px
  20. Technical information
  21. =====================
  22. Each time the PoS instantiate a product, it will add this code for each product
  23. .. code:: html
  24. <img src="'/web/binary/image?model=product.product&field=image_medium&id='+product.id;" />
  25. The browser will trigger as many requests than there are different urls.
  26. If you have many products, the browser will soon reach his limit of
  27. network connections to Odoo server and will wait for free slots instead of
  28. loading other valuable contents. Then the PoS is then very slow to work with.
  29. This module adds a field has_image in product.product model.
  30. If product has no image, the product image url is not sent to the PoS