← Back to team overview

openerp-india team mailing list archive

[Bug 1252342] Re: [7.0] POS take an image of a wrong size

 

** Also affects: ocb-addons
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1252342

Title:
  [7.0] POS take an image of a wrong size

Status in OpenERP Community Backports (Addons):
  New
Status in OpenERP Addons (modules):
  Won't Fix

Bug description:
  POS takes an image field instead of image_small of a product. If you
  uploaded big images POS consumes huge amount of RAM and became really
  slow.

  This bug is very easy to correct:

  in file point_of_sale/static/src/js/models.js (lines 327-331)

      module.Product = Backbone.Model.extend({
          get_image_url: function(){
              return instance.session.url('/web/binary/image', {model: 'product.product', field: 'image', id: this.get('id')});
          },
      });

  should be substituted with:

      module.Product = Backbone.Model.extend({
          get_image_url: function(){
              return instance.session.url('/web/binary/image', {model: 'product.product', field: 'image_small', id: this.get('id')});
          },
      });

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1252342/+subscriptions