openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #02765
[Bug 1267495] [NEW] [7.0] stock: call to stock.picking cancel_assign causes many unnecessary calls to workflow trg_write
Public bug reported:
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).
** Affects: ocb-addons
Importance: Undecided
Status: New
** Affects: ocb-addons/7.0
Importance: Undecided
Status: New
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (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
Follow ups
References