← Back to team overview

openerp-india team mailing list archive

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

 

** Also affects: openobject-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/1267495

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

Status in OpenERP Community Backports (Addons):
  New
Status in OpenERP Community Backports (Addons) 7.0 series:
  New
Status in OpenERP Addons (modules):
  New

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).

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