← Back to team overview

openerp-community-reviewer team mailing list archive

[Bug 1318668] [NEW] [7.0] Product view slow with many stock_locations

 

Public bug reported:

Hi !

With 13000 stock locations, it takes nearly 10 seconds to see the
product list view, and another 10 seconds each time you click anywhere
related to a product.

We analysed that bug, and saw that the fields_view_get request returns
our 13000 locations and our warehouses...

This problem is related to these two fields  (file: stock/product.py):

'location_id': fields.dummy(string='Location', relation='stock.location', type='many2one'),
'warehouse_id': fields.dummy(string='Warehouse', relation='stock.warehouse', type='many2one')

Does anybody knows why these fields are dummy ?

We replaced those with true many2one fields and the problem is gone.

Best regards

** Affects: ocb-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Community Backports, which is subscribed to OpenERP Community Backports
(Addons).
https://bugs.launchpad.net/bugs/1318668

Title:
  [7.0] Product view slow with many stock_locations

Status in OpenERP Community Backports (Addons):
  New

Bug description:
  Hi !

  With 13000 stock locations, it takes nearly 10 seconds to see the
  product list view, and another 10 seconds each time you click anywhere
  related to a product.

  We analysed that bug, and saw that the fields_view_get request returns
  our 13000 locations and our warehouses...

  This problem is related to these two fields  (file: stock/product.py):

  'location_id': fields.dummy(string='Location', relation='stock.location', type='many2one'),
  'warehouse_id': fields.dummy(string='Warehouse', relation='stock.warehouse', type='many2one')

  Does anybody knows why these fields are dummy ?

  We replaced those with true many2one fields and the problem is gone.

  Best regards

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


Follow ups

References