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.

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