← Back to team overview

openerp-community-reviewer team mailing list archive

[Bug 1264950] Re: 7.0: stock_picking.action_cancel can cause RuntimeError: maximum recursion depth exceeded

 

** Also affects: ocb-addons
   Importance: Undecided
       Status: New

** Also affects: ocb-addons/7.0
   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/1264950

Title:
  7.0: stock_picking.action_cancel can cause RuntimeError: maximum
  recursion depth exceeded

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:
  During the testing of an addon for a customer, in which I call
  cancel_assign on stock pickings I came across the exception for which
  a stack trace is attached to this bug report.

  It looks like writing to the state attribute of the picking generates
  call to trg_write, even if the value written is the same as the
  existing value. So a possible fix would be to check for the state of
  the picking and only issue a call to write if the value is to be
  modified.

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