Products more than 10000 slow down the printing of Location Content report
Bug #776493 reported by
Sinoj Sebastin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP's Framework R&D |
Bug Description
Hello,
Printing of "Location Content" report from the right pane of "Stock by Location" taking a long time to produce the report, and sometimes it will not produce the pdf at all when the number of product is in range of 10000. I think it is running the function "process" on "addons/
Thank you.
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
To post a comment you must log in.
Hi, is possible to fix in this mode:
on file stock/report/ stock_overview. py
on def process(self, location_id) function you have to search only product that have move on this location
so on line 38
# search product_ids
move_ids = stock_move_
product_ids = []
for move in stock_move_
if move.product_id.id not in product_ids:
data = location_ obj._product_ get_report( self.cr, self.uid, [location_id], product_ids, self.context, recursive=False)