Browse Source

[FIX] wording + remove useless JS code

pull/263/merge
Sylvain LE GAL 8 years ago
parent
commit
5aa50f199a
  1. 13
      pos_default_empty_image/README.rst
  2. 4
      pos_default_empty_image/__manifest__.py
  3. 1
      pos_default_empty_image/static/src/js/widgets.js

13
pos_default_empty_image/README.rst

@ -2,9 +2,9 @@
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
=======================
POS Default Empty Image
=======================
================================================
Optimize loading time for products without image
================================================
This module extends the functionality of point of sale to make PoS load faster This module extends the functionality of point of sale to make PoS load faster
and to improve products display. and to improve products display.
@ -12,11 +12,12 @@ and to improve products display.
Point Of Sale Load faster Point Of Sale Load faster
------------------------- -------------------------
In the point of sale, trying to load known inexistant images is a waste of time.
In the point of sale, loading product without image spend unnecessary time
and resources
When you have 8000 products in your Point of Sale and most of them When you have 8000 products in your Point of Sale and most of them
don't have images, you are happy to save thousands of useless requests:
the POS load way faster.
don't have images, removing thousands of useless requests is welcome:
the POS loads faster that way.
Improve products display Improve products display

4
pos_default_empty_image/__manifest__.py

@ -3,9 +3,9 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ {
'name': 'POS Default empty image', 'name': 'POS Default empty image',
'version': '10.0.0.1.0',
'version': '10.0.1.0.0',
'category': 'Point Of Sale', 'category': 'Point Of Sale',
'summary': 'Optimise load time for products with no image',
'summary': 'Optimize loading time for products without image',
'author': "Akretion, GRAP, Odoo Community Association (OCA)", 'author': "Akretion, GRAP, Odoo Community Association (OCA)",
'website': "https://akretion.com", 'website': "https://akretion.com",
'license': 'AGPL-3', 'license': 'AGPL-3',

1
pos_default_empty_image/static/src/js/widgets.js

@ -22,7 +22,6 @@ odoo.define('pos_default_empty_image.widgets', function (require) {
else { else {
var cached = this.product_cache.get_node(product.id); var cached = this.product_cache.get_node(product.id);
if(!cached){ if(!cached){
var image_url = this.get_product_image_url(product);
var product_html = QWeb.render('ProductNoImage',{ var product_html = QWeb.render('ProductNoImage',{
widget: this, widget: this,
product: product, product: product,

Loading…
Cancel
Save