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.

96 lines
2.8 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. ================================================
  5. Optimize loading time for products without image
  6. ================================================
  7. This module extends the functionality of point of sale to make PoS load faster
  8. and to improve products display.
  9. Point Of Sale Load faster
  10. =========================
  11. In the point of sale, loading products without image spend unnecessary time
  12. and resources.
  13. When you have 8000 products in your Point of Sale and most of them
  14. don't have images, removing thousands of useless requests is welcome:
  15. the PoS loads faster that way.
  16. Improve products display
  17. ========================
  18. By default, Odoo PoS display a useless generic image for products that doesn't
  19. have images.
  20. .. figure:: /pos_default_empty_image/static/description/pos_display_default.png
  21. :width: 800 px
  22. With this module, the display of the product is changed, (Size of the name
  23. is increased for better visibility);
  24. .. figure:: /pos_default_empty_image/static/description/pos_display_improved.png
  25. :width: 800 px
  26. Technical information
  27. =====================
  28. Each time the PoS instantiate a product, it will add this code for each product
  29. .. code:: html
  30. <img src="'/web/binary/image?model=product.product&field=image_medium&id='+product.id;" />
  31. The browser will trigger as many requests than there are different urls.
  32. If you have many products, the browser will soon reach his limit of
  33. network connections to Odoo server and will wait for free slots instead of
  34. loading other valuable contents. Then the PoS is then very slow to work with.
  35. This module adds a field has_image in product.product model.
  36. If product has no image, the product image url is not sent to the PoS
  37. Updates
  38. =======
  39. * Feb 2016 : First version
  40. * March 2018 : migration to v10 and improvements for Display
  41. Bug Tracker
  42. ===========
  43. Bugs are tracked on `GitHub Issues
  44. <https://github.com/OCA/pos/issues>`_. In case of trouble, please
  45. check there if your issue has already been reported. If you spotted it first,
  46. help us smash it by providing detailed and welcomed feedback.
  47. Credits
  48. =======
  49. Contributors
  50. ------------
  51. * Hparfr <https://github.com/hparfr> `Akretion <https://akretion.com>`_
  52. * Sylvain LE GAL <https://twitter.com/legalsylvain>
  53. * Invitu <https://github.com/invitu>
  54. Maintainer
  55. ----------
  56. .. image:: https://odoo-community.org/logo.png
  57. :alt: Odoo Community Association
  58. :target: https://odoo-community.org
  59. This module is maintained by the OCA.
  60. OCA, or the Odoo Community Association, is a nonprofit organization whose
  61. mission is to support the collaborative development of Odoo features and
  62. promote its widespread use.
  63. To contribute to this module, please visit https://odoo-community.org.