[7.0] stock: call to stock.picking cancel_assign causes many unnecessary calls to workflow trg_write

Bug #1267495 reported by Alexandre Fayolle - camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned
OpenERP Community Backports (Addons)
Status tracked in 7.0
7.0
New
Undecided
Unassigned

Bug Description

When calling stock_picking.cancel_assign, a first call to trg_write for the picking is done, and then the stock_move.cancel_assign is called, which will cause a call to trg_write of the picking for each move. This is not efficient at all.

The correct way of doing things is to rely on stock_move.cancel_assign to call trg_write for the picking and to make sure that trg_write is called once for each different picking related to the list of moves (in case the stock_move.cancel_assign is not called by stock_picking).

Related branches

no longer affects: ocb-addons
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.