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.

44 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 a waste of time.
  13. When you have 8000 products in your Point of Sale and most of them don't have images,
  14. you are happy to save thousands of useless requests : the POS load way faster.
  15. Technical information
  16. =====================
  17. Each time the pos instantiate a product, it will add an
  18. <img src="/web/.... + imageId"> to DOM.
  19. The browser will trigger as many requests than there is different url.
  20. If you have many products, the browser will soon reach his limit of network connections to Odoo server and
  21. will wait for free slots instead of loading other valuable contents.
  22. The POS is then very slow to work with.
  23. This module adds a field _has_image_ in product.template and will change
  24. the product image url to his default placeholder directly in the POS.
  25. Because there is only one url for this placeholder, you will have only one request for all the products with
  26. no images.
  27. Indeed, if the product has an image, it will load normally.
  28. """,
  29. 'author': "Akretion / Odoo Community Association (OCA)",
  30. 'website': "https://akretion.com",
  31. 'license': 'AGPL-3',
  32. 'depends': ['point_of_sale'],
  33. 'data': [ 'view/view.xml'],
  34. 'qweb': [],
  35. }