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.

49 lines
1.5 KiB

  1. # -*- coding: utf-8 -*-
  2. # © <2015> <Akretion, OCA>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. {
  5. 'name': 'POS Default empty image',
  6. 'version': '8.0.0.1.0',
  7. 'category': 'Point Of Sale',
  8. 'summary': 'Optimise load time for products with no image',
  9. 'description': """
  10. POS Default empty Image
  11. =======================
  12. In the point of sale, trying to load known inexistant images is
  13. a waste of time.
  14. When you have 8000 products in your Point of Sale and most of them
  15. don't have images, you are happy to save thousands of useless requests :
  16. the POS load way faster.
  17. Technical information
  18. =====================
  19. Each time the pos instantiate a product, it will add an
  20. <img src="/web/.... + imageId"> to DOM.
  21. The browser will trigger as many requests than there is different url.
  22. If you have many products, the browser will soon reach his limit of
  23. network connections to Odoo server and
  24. will wait for free slots instead of loading other valuable contents.
  25. The POS is then very slow to work with.
  26. This module adds a field _has_image_ in product.template and will change
  27. the product image url to his default placeholder directly in the POS.
  28. Because there is only one url for this placeholder, you will have
  29. only one request for all the products with no images.
  30. Indeed, if the product has an image, it will load normally.
  31. """,
  32. 'author': "Akretion / Odoo Community Association (OCA)",
  33. 'website': "https://akretion.com",
  34. 'license': 'AGPL-3',
  35. 'depends': ['point_of_sale'],
  36. 'data': ['view/view.xml'],
  37. 'qweb': [],
  38. }