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.

78 lines
2.5 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. POS Default Empty Image
  6. ===========================
  7. In the point of sale, trying to load known inexistant images is a waste of time.
  8. When you have 8000 products in your Point of Sale and most of them don't have images,
  9. you are happy to save thousands of useless requests : the POS load way faster.
  10. Technical information
  11. =====================
  12. Each time the pos instantiate a product, it will add an
  13. <img src="'/web/binary/image?model=product.product&field=image_medium&id='+product.id;">
  14. The browser will trigger as many requests than there is different url.
  15. If you have many products, the browser will soon reach his limit of network connections to Odoo server and
  16. will wait for free slots instead of loading other valuable contents. Then the POS is then very slow to work with.
  17. This module adds a field _has_image_ in product.template and will change the product image url to his default placeholder directly in the POS.
  18. Because there is only one url for this placeholder, you will have only one request for all the products with no images.
  19. Indeed, if the product has an image, it will load normally.
  20. Known issues
  21. ============
  22. Updates
  23. =======
  24. * Feb 2016 : First version
  25. Bug Tracker
  26. ===========
  27. Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
  28. In case of trouble, please check there if your issue has already been reported.
  29. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/web/issues/new?body=module:%20web_switch_company_warning%0Aversion:%200.1%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  30. Credits
  31. =======
  32. Contributors
  33. ------------
  34. * Hparfr <https://github.com/hparfr> (Akretion)[https://akretion.com]
  35. * Sylvain LE GAL <https://twitter.com/legalsylvain>
  36. See also this module: [pos_improve_images from GRAP]
  37. (https://github.com/grap/odoo-addons-grap/tree/7.0/pos_improve_images)
  38. for OpenERP 7.
  39. Maintainer
  40. ----------
  41. .. image:: https://odoo-community.org/logo.png
  42. :alt: Odoo Community Association
  43. :target: https://odoo-community.org
  44. This module is maintained by the OCA.
  45. OCA, or the Odoo Community Association, is a nonprofit organization whose
  46. mission is to support the collaborative development of Odoo features and
  47. promote its widespread use.
  48. To contribute to this module, please visit http://odoo-community.org.